Started on framework for proper server class

* Proper protocol for messages
* New state machine generator for server class
* This'll replace zpipes+zpipes_agent