Fixed HTTP errors being wrapped and returned as HTTP 500.
Minor clean-up of token validation methods.
Added a test.
Added extension methods to claims principal.
Merge pull request #39 from Georadix/fix/http-errors

HTTP error handling and ClaimsPrincipal extensions.