Redesigned bootloader / uploader protocol to be more robust.