Nsq integration

This implements the design discussed in #50 . Resolves #50 #61.