Keep an index of name heights -> names.

This index will allow to remove expired names from the UTXO set in the
future.  Also add a new RPC call "name_checkdb", that verifies this
index and the UTXO set.  This check fails for now, since the UTXO set
pruning is not yet implemented.