Added token index action which returns the token if username/password is valid.
Token based authentication working with the backend.