Revert "Removed editfile functionality, was not used anywhere."

This reverts commit 5f85da76309f8054725aab82d2f46b25952677de.