Add overloaded version of SimpleNetworkWrapper#registerMessage

Add overloaded version of `SimpleNetworkWrapper#registerMessage` that takes the MessageHandler instance directly, allowing to specify the same handler for multiple messages.
Also relax the generic bounds some to allow this.