REF: Moved order-related methods from AlgoProxy.

This moves some order-related functionality form `AlgoProxy` to `TradingAlgorithm` since the functionality is definitely useful for zipline as well.