Added simple basicAuth
Some minor fixes. Added basicAuth to the API aswell.