Added primitive support for basic authentication

Note that the password will be passed over HTTP in plain text.