Proof of concept for hub api. Queue requests and execute in batch. Subscribe and Unsubscribe event handlers for server notifications.