Authentication cleanup and more configurability in justify plugin