added a pubsub endpoint, with code from bitly/nsq
Merge pull request #29 from mikedewar/master

added a pubsub endpoint, with code from bitly/nsq