Fix debug & Allow to enable proxy & Fix memleak (open files should be closed).
Id of connection should be incremeneted.
connection should be iterated from 1 instead of 2, correct default proxy
Improve logging
Update jsonRPCClient.php
Update jsonRPCClient.php
Merge pull request #1 from armano2/master

Cleaner code fixes and refactoring from pull request #1

    Rewrite debug log
    Allow to enable proxy
    Fix memleak (open files should be closed).
    Id of connection should be incremeneted up from 1