Implements backend for Kelsey's trading agreements.

- TradeFactory to create Trade instances.
- TradeManager that handles trade proposals and updating all active trades.
- Implements test cases for trade agreements.