Add state diagrams

This patch provides state diagrams for both the client library and the server.
Merge pull request #5 from vmrob/State-Diagram-Branch

Add state diagrams