Adds login/out functionality

Thing such as clientId still hard-coded