Api interface: login and user creation

This pull request implements the login and user creation methods in the `ApiInterface`.

The rest of the functionality needed for the Alpha build (creating entries and budgets, as far as I can tell) will be implemented shortly.