Refactoring authentication to make use of a manager.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fixed dispatcher doubling up the prefix for route names and controller actions.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>