Split doFlash() to do_flash() and do_download() methods.

it's for future work (local files flashing). let's remove it.