So long as its in a separate section plugins can save to the project file on the project_save signal, see project_organiser.
Thanks for the tip: I found the documentation for signals, and that seems to be all that I would need.
I will let the dust settle for now: if my pull request is merged, I will wait a little for anyone to complain about regressions before doing more damages. :-)