Merge pull request #181 from evoskuil/version2

Add primitives signature/endorsement, update input/msg cmds.