Added new "tx" RPC call JSON format

With this change, both the new (result->transaction) and old JSON format are supported. Use the already-existing if-else comments to definitively remove the old format.

Fixes ripple/ripple-rest#193