Implementation of --dry-run option
Show details of space available if flashing failed

due to lack of space or with --dry-run option.
Implementation of --title with multiple ROMs
Make use of header_xxx functions in --write
Add function header_getromsize()
Fix bug: last block was never flashed/formated
Add --format option and format() function
Format page even before flashing just one ROM
Minor cleanup