Clean up pm commands and add pm for seen

Maintain pm commands in a map and register a pm command for seen.