So here's a list of functions that would be useful for my project (and also for any other project, I hope!)
https://wri.tt/43mbmsj9xj1eh7po
I've tried to write them down with the current scripting system in mind, but they probably can be improved, merged or split to make everything fit together. The priorities are also kind of arbitrary, they can of course be modified if some features depend of each other and need to be implemented in a different order.