Test for useragent header in api v1
Add useragent to apiv1 tests
test apiv1 if no useragent is set
merging
Merge pull request #822 from fangeugene/apiv1-useragent

Require Useragent for API V1. Fixes #804