(Bug 5138) Simplify file edit method

This flattens the input so as not to require a props dictionary, making
the calling convention slightly easier. Clients don't need to understand
properties versus other things.