implement rename file as fileoperations.

This removes the hack where to rename a file we created a new file,
copied the content and delete the old file.

Use moveTo of DOMFilesystem instead.