I've made this draft of an editmesh_add operator, and the code fails in various parts.
I guess this is obsolete now ;)