remove httpProxy and .Close()

.Close() is handled in httpProxy.go serve() function.  This stops the
alert: 'ALERT Tunnel received failure signal'
Code clean up and added simple NewSession test
Separate tests from core for reuse.