Prepare for subscription seperation based on subscribe options

All subscriptions with the same subscribe options are given the same
subscription id so the events can be send in batches.
Changed messages and types classes to handle meta events.
Implemented meta events.
Changed messages and types classes to handle pattern based subscriptions
Implemented pattern based subscriptions without wildcard patterns.