Simplify name_show and name_history.

Simplify the implementations of name_show and name_history.  This makes
it possible to get rid of GetValueOfTxPos and some redundant disk loads.