Error messages lost because stderr is closed

Use cout instead of cerr for command errors
Use cerr for debug mode because stderr is avail
Output map_epoch in debug mode
Fix a message and only for debug mode

Signed-off-by: David Zafman <david.zafman@inktank.com>
osd: data loss: pg export/import/remove

Implement remove feature (intermediate)
Just adding --type remove instead of new command name.

Feature: #4201

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reorganization for import/export

Change local names to be clearer
Break real_log() into common function get_log()

Signed-off-by: David Zafman <david.zafman@inktank.com>
Initial "export" implementation of info/log only

Signed-off-by: David Zafman <david.zafman@inktank.com>
Initial import of just info and log
Add epoch to export and import