Added proxied connection factory and added proxy preferences
Finished proxy support, closes #91