Add support for basic auth

This adds support for all endpoints, and the credentials can be set with two
environment variables -- BASIC_USER and BASIC_PASS.