Added connect and disconnect callbacks, message-events, GetNumPublishers()

I'm working on an implementation of actionlib for rosgo, and it requires some metadata from the publish-subscribe functions that was not previously implemented in rosgo.

This is a new version of #6 which fixes the gofmt merge conflicts.