NSQ internals

Finished the first pass

RFR @danielhfrank @mccutchen @ploxiln @jehiah 

(I put the PR here to reduce visibility and noise on bitly/nsq)