support for covering short positions, code cleanup and reorg
Merge branch 'master' of github.com:InvictusInnovations/BitShares