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