Remove extraneous message
Have logging figured out in a single place
Don't use global variables and fix argument parsing
Have a single log and put it in a constant location
Don't delete previous backup until this one is done!  also do error checking
Cleanup
Use local variables for function params
Split doFlash() to do_flash() and do_download() methods.
Removed file-checking.
Merge remote-tracking branch 'jhford/error-checking' into merge_239

Conflicts:
	backup_restore_profile.sh
Merge pull request #262 from askeing/merge_239

Merge #239
Setting up NO_FTU before restore user profile.
use tr to remove \r\n
Merge pull request #266 from askeing/master

Setting up NO_FTU before restore user profile.
Added SD card support for backup_restore_profile.sh
Merge pull request #267 from zapion/master

use tr to remove \r\n
Merge pull request #265 from askeing/backup_restore_sdcard

Added SD card support for backup_restore_profile.sh
Merge pull request #260 from askeing/split_download_method

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