http utils
reqFactory in Registry
Server now use request factory
auth with user agent
factory generated from one place.
update auth_test.go
Merge pull request #1382 from monnand/650-http-utils

650 http utils and user agent field