Support account_tx JSON and return meta

This also involves supporting transaction JSON.
It seems a bit slow in the current implementation -- maybe because of
the large number of optional keys?