Removed 'jsonrpc' source and dependencies.

Refactored to use builtin JSON library.
 Now shutdowns cleanly. Removed type conversion bug.