Import from original rabbit_auth_backend_http code
Rename files to match module name
Adapt code to authenticate with max and oauth