Issue #945 - Relative Orders in Print Order Book

Fixed various bugs in how the order book calculates and sorts orders.
Merge branch 'develop' of github.com:BitShares/bitshares into develop