Changed gettransaction to work with any transaction (provided txindex=1)