Added login and logout to the front end. Changed the back end to accept a token as opposed to using warden for authentication