fix comparing TxIn/Outs with objects of other classes

(it already works for blocks / txs because they only compare #hash, which every object happens to have)
postgres store: change tx.hash column type to bytea
storage: (optionally) index normalized tx hashes
fix storage config