You could take a look at the badgeboard code. I didn't look too closely, but it looks like they use it with the usb (so that's the JM, not the QE), but you could probably modify it to use the uart.
FTFBadge_2008_Bootloader_zip.zip