Updated networking library

-Added IsConnected() to NetManager and TCPConnection.
-Improved SendMessage() code to check for errors and shut down connected
if an error has occured