Use minimal JsonRpc as msg protocol
Update PubSubClient to use JsonRpc

Also use null byte as terminator
Minor spacing change
Update server to pass json rpc msgs

Also add null byte and some other small code changes