WIP

1. Add more tests
2. Fix warnings
Fix transport termination.
Correct cleanup
Add tests, cleanup code, fix connection.
documentation update architecture fixes
fix improper update of RemoteEndPoint state
Fix tests
Fix tests
allow more tests