Event-driven framework for implementing application protocols
