replace connect.publish for topic.publish, ./sniff for dojo/sniff
more cleanup (connect, Deferred, dojo/ready...)