Added a few more tests.
Fixed several bugs related to the new protocol layer.
Removed LockedTransport code.