Fixing up test stubs and autoloading.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fixed bug where API would kick in when a regular group had a prefix of "api". Fixes #7.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Implemented default prefix and domain that can be set in configuration.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Lots of refactoring and cleaning up.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Passing InvalidTokenException in so a custom handler can grab the error.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Tweak the exception handler so status codes are only set on new responses.

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

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fixing bug with registering multiple versions in a single group.

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

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Internal user authentication is persisted and added optional "once" method to only authenticate for single request.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Implemented API::route and API::action for name-based and action-based requests. Closes #12.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
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>
Removing the response facade.

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