refactor AMQP, TokenAuth, UserPassAuth, and RuleTree into own modules