Machine readable alternative to getCompactHTML.

I added function to extract useful information from a transaction. Its based on getCompactHTML, but returns a dictionary instead of an HTML snippet.