Add GetNamesForHeight and -checknamedb parameter.

Allow using the new expire index to query for names updated at a certain
height, and add the -checknamedb parameter to enable auto-checking of
the name db consistency.  Names are still not automatically removed when
expiring, so the checks fail if names expire.