verify_flash: add const to char filename in func signature
write_flash: add logging + emergency_help_message when flashing failed
write_flash: add more comments (copied from doit())
doit(): use new [read/write/verify]_flash functions
move cb boardmismatch code into write_flash
comment out nonfatal_help_message() as long it's unsused