Add more API functions

The primary functions are using a server presented API key, appeneded to
all requests (except testAPIKey and GetNewAPIKey).
Also downloads a new key on startup if not in the storage