Wire protocol

Added code to implement the MongoDB wire protocol, and Cucumber features to test it. All tests pass.