login: add commands to dump and clear login cache

Ticket: #7728
Acked-by: Paul Millar
Target: trunk
Require-book: no
Require-notes: yes