Refactor Publisher socket read logic to more durably handle heartbeats.

Conflicts:
	lib/nsq/publisher.rb