Fix issue with multiple error values

Closes #2.

Also changes api_login to environment_key and api_secret to
access_secret in a backwards compatible manner.