TCPSocket library cleanup.

Cleaned up TCPSocket library, removing some unneeded debug messages and reducing
the HTTP request down into a single method (space saving FTW).