Added an api method to send messages to a custom PubSub channel.

 This makes the register channel feature a lot more useful.