Basic authentication

Fixes issue #9.