http: check err return from http.NewRequest
Merge pull request #1044 from unihorn/119

http: check err return from http.NewRequest
etcdhttp: perform validation of query parameters

Add basic input validation of all query parameters supported by
serveKeys. Also restructures etcdhttp a bit to better facilitate
testing.

Test coverage is slightly improved.