And finally! Here it is. I don't have the actual bootloader interface logic done yet (the SFTP class needs to take the write data block and push it over SPI to the front panel, and the bootloader needs to actually write it to flash).
But everything is done on the SFTP protocol and ELF parser to the point that it knows what data to write to what flash addresses.
I should probably sleep now.