Rewamped authentication to be less ambitious for the first version.
Implemented simple token authentication.