Implemented JSON RPC 2.0

Tests should be extended.