Allows users to use Token or HTTP Basic authentication

Fixes #19