Add authentication method

Adds a method to authenticate to the server without pre-knowledge of our
API key. Also fixed tab issues.