Move authz methods to library
Merge remote-tracking branch 'upstream/master' into io.jpope.org