Json rpc 2.0

Implemented code to support 2 types of json-rpc versions. The main difference between the two is that 1.0 has null values, while json-rpc 2.0 leaves them out entirely. 2.0 also has to be prefixed by the version number.