Prepare refactor connection
Refactor
Refactor
Refactor
Compatible with Dropbox and Privoxy
Remove connection object after relay
Fix memory leak