Support basic auth

Support passing in basic auth into phantomjs.
:speech_balloon: added rstrip to not break existing specs, in the case that basic auth fields are nil.