Support environment variables for authentication

Closes gh-1