Add feature to use token based authentication

Moved from session based auth to x-auth-token (for advantages see https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/)