YD: ProtocolHandler will be the starting point for implementing Connector. Deleting obsolete code.
YD: Added more fine grained lifecycle event publishing
YD: Added some tests