Add authenticate method

Adds a way to authenticate to the server without pre-knowledge of the
user's API key.