Token authentication and authorization implementation.
Merge pull request #1468 from Lotpath/token-authentication

Token authentication and authorization implementation.