Added login url redirect logic.
Fixed token request calls by loading user details.
Fixed bugs when client arrived with invalid token.
Moved redirect logic to http module.