Implemented first part of JSON-based event messaging system.