fixed issue https://github.com/globaleaks/GlobaLeaks/issues/86
better implementation of HTTP Exception handling
fixed a bug related to keep-alive connections and protocol status variables.
Merge pull request #118 from globaleaks/issue/86

fixed issue https://github.com/globaleaks/GlobaLeaks/issues/86