Add flash test program. Add ability for loader to boot from flash. Fix stack leak in dump.