Make foliage persistent on level

Answering my own question after some research: it looks like the right way is to make an editor plugin and use features from the FoliageEdit module. Problem is that most classes from this module are not exported! So the only way for now is to build the engine from source exporting the appropriate classes, the plugin will then be able to use them.