Added authentication class for JSON Web Token.

http://jwt.io

Useful for web services and popularly used with angularjs frontends.