Implemented the protocol via the commandline. Added API methods required to work. Not stable, but it works. Updated testcases
Merge remote-tracking branch 'origin/master'