Those examples you linked to will have their own equivalents of the bootloader. If you are already competent to design, write and debug an Arduino bootloader the stuff you are thinking about should be possible. (I will happily leave it to @CrossRoads to assist you :))
If not, then the only option is to take the working sketch you already have and make a new version of it with added features.
...R