Removed requirement for http login for API when an API key is provided

Fixes #79