Refactor and add high-level `onNewMessage` func

This makes small changes to the library and adds an `onNewMessage`
helper function. Helpers for sending private and stream messages were
also added. This bumps version to 0.3.0.0.