JSRONRPC class finished.

First version of JSONRPC done. All methods implemented, at least the basic.

Some tests were added, not very deep but its a beginning.
Typo fix.

Just correcting couple of syntax errors.