Started on framework for proper server class

* Proper protocol for messages
* New state machine generator for server class
* This'll replace zpipes+zpipes_agent
Merge pull request #7 from hintjens/master

Started on framework for proper server class