CMS-3927 Implement API classes for server event system.
Use OSGi and injections to subscribe/unsubscribe instead of explicit methods.