replace asserts with named exceptions
Ticket #306 fixed
Merge branch 'master' of github.com:BitShares/bitshares_toolkit