Minor fixes around authentication, including getting basic auth working again
Merge pull request #2 from mapbox/auth-fixes

Authentication fixes