Adds basic auth

https://www.pivotaltracker.com/story/show/66355890