Listen for AuthenticationException

Convert AuthenticationException to AccessDeniedHttpException

Issue #411
Update docs to explain the 401 status code
Add space between elseif and parentheses
Merge pull request #411 from RLovelett/dev-411

Handle AuthenticationException