Support for message types

* Sender can now send messages of different types
* Wrapper for sender in Node (automatically handles situation when sender is null)