added get_address logic from counterpartyd
added get_address logic from counterpartyd

Reddcraft/reddblockd,ClearingHouse/clearblockd,paytokens-beta/payblockd,metronotes-beta/metroblockd,Tetchain/tetblockd,CounterpartyXCP/counterblock,patricklodder/dogeblockd,Reddcraft/reddblockd,CounterpartyXCP/counterblock,Tetchain/tetblockd,ClearingHouse/clearblockd,Peertokens/peerblockd,Czarparty/czarblockd,Paytokens/payblockd,Litetokens/liteblockd,Bluejudy/blueblockd,Metronote/metroblockd-alpha,Bluejudy/blueblockd