auth: remove unused errors, add new errors, fix panic in basicCredentials()
api/auth/auth_test: initial commit