More work on global events efficiency improvements. Added security feature to limit number of message queues each socket can listen to.