fixed some bugs that could lead to memory leaks
Merge branch 'beta' of ssh://github.com/globaleaks/Tor2web-3.0