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
Technically we could put this in the actual content-type response `"application/json; charset=utf-8; nsq-version=1.0"`