Refactored ConnectionActor into a ConnectionEntity (not an actor).
Improved type safety of FiniteStateMachine and clients. Only create
DSM, LSM, and PSM when the aggregated connection is committed.