implemented zprotocol - needs test
added test for zprotocol
Merge pull request #389 from sappo/master

zprotocol - simple protocol/api