Add ordering for txin in transaction and transactions in block. tx_hash is now a property, like block_hash. Add repr methods to the db objects.