Refactored Request. Bugfixed possible hanging up while uploadiing.
Merge branch 'master' of github.com:kakserpom/phpdaemon