* add libjson
* port cmd.c to use new portier JSON Protocol - cmd flags are still compatible :)