adds basic auth support
also work on java 7
Merge pull request #263 from wordnik/basic-auth

Adds Basic auth as an authentication mechanism