Added url to api for obtaining token
Added login functions and set the token to be stored in a cookie (instead of hardcoded).