extract basic auth from URL

Fixes #128
Merge pull request #129 from mrfoto/heroku_fix

Extract basic auth from URL