Update server response JSON structure to match JSON RPC 2.0 specification.

result and error members should be omitted if not applicable.
Merge pull request #13 from wongak/master

Update JSON server response structure to match JSON RPC 2.0 spec.