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
Adding .editorconfig for consistent whitespace
Minor documentation fixes, pushing to 0.1.1
Adding link to Packagist
fixing space
Merge pull request #1 from soundasleep/master

merge master