Mass load of bug fixes
Tests
* Hand tests now able to test adding and removing of connections
* Attempts made at closing of channels
Channels
* Modified the close calls to allow errors to propogate
* Reduced chances of memory leaks, allowing re-opening of text windows
* Cleaned up the channel manager's close code
Connection
* Added capabilities
* Worked to reduce memory leaks allowing new connections to be created
Connection Manager
* Fixed a shutdown bug
* Added some logging
State Machine
* Improved the flexibility of the states
Simple Presence
* Tried to clean up the presence code and finish implementing it
13 files changed: