Added tests for bootstrapper.protocol.

* Also fixed a few bugs that came up during testing.
* I'll probably write additional unit tests.
Added bootstrapper protocol stream test.

* This test ensures that the decoder can handle decoding lots of
  messages one after the other.