config_write(): pass config by reference.
Add config write to flash command.
Fix types.
client: complete bootloader commands.