Ability to log in

This is the web2 side of PR #26 - it allows a user to log into the API. 

Note that the client_id used to log into the API is stored in the config file and must match the one within the API's config file.