Merge pull request #49 from chertov/master

use HTTPConnection as the base class for proxy
fixed build error
moved itoopieImage inside HTTPConnection
fixed race condition
Merge pull request #23 from orignal/master

Merge pull request from orignal/master