added simple authorizer support. added logging for subscriptions, unsubscriptions, connects and disconnects. removed a deadlock.