Wire up state machine to transformer chan
Move MockAgent to agent/lib
agent: API, MockAgent: consistent handler names