Updated the Secure TCP library

Changed the way the messages are sent and stored. This is not as
efficient as I want, but it works well for now.