Coinffeine/coinffeine — pull request #145 by sortega (2014-06-05 09:46:56+00:00)
Title: Use OrderSet instead of Order as protocol message

### Description ###

Orders should be sent as a complete set to simplify the consensus of
the broker set. This means that `Order` is no longer a protocol message.
Consequently, modify actors to use `OrderSet` instead of `Order`.

Also, remove `OrderCancellation` message. The way to cancel an order is to send a new order set without that given order.

And finally, the introduction of `OrderSet` triggered a redesign of the `Position` class, that become templated (e.g. `Position[Bid.type]`), allowing the removal of several runtime checks in `OrderBook` and `OrderMap`.

### Testing ###

Old tests still pass and new tests covering new code also pass.

### Coverage ###

Under measurement