Changes to introduce an Api Token.
Authentication now working for login, register.