MDL-43089 move some bits editlib->edit_renderer

Also delete a lot of obsolete code.