Shutdown should be a member of connection.

* Clearly the tests don't have very good code coverage yet.
Flood test shuts sockets down properly.
Added bad message test.
Fixed deadlocking socket issue on bootstrapper.

* The accepted connections were not being set to non-blocking mode
  which became a problem when multiple connections were made at once.
* Added unit tests that showed the problem.