improve vote counting, genesis block init, etc
Merge branch 'master' of github.com:BitShares/bitshares_toolkit into upstream