make user_api compatible with HTTP basic auth
Merge pull request #531 from edx/hotfix/jsa/user_api_basic_auth

make user api work with basic auth