Fixed bug where only first 512 bytes were read from the outgoing proxy socket. Also removed some commented out code and reverted experiments.