HTTP response format continued

@jehiah noticed that we didn't update `nsqlookupd` HTTP response formats in #330

took advantage of the opportunity to make the code a little more modular and reusable
I would be worried about shitty HTTP clients that this might screw up...

I copied the GitHub API, FWIW.