Merge pull request #38 from jeremybanks/user-agent

Adds a User-Agent, and a test to ensure it's used.
Merge pull request #39 from Manishearth/test

Forward test to master
Merge branch 'master' into test