improve replace speed
we now do replace-all at once for one document we only have local vectors of stuff we avoid triggering massive updates of the treeview by temporarily removing the items (this could be avoided by having model/view and just creating new model)
This replaces !137 (closed)