Move bootloader to it's own class; buffer flashing