Honored Maine code enforcement officer quits after disputes with town manager