Initial import from http://jsonrpcphp.org/
Code prettify
Improve handling of return exceptions and keep responses from fopen quiet