add ability to customize the user agent string
fix indentation
merge upstream master
update tests to make them pass
Merge pull request #7 from mxlje/custom-ua

Add ability to customize user-agent string