(Bug 5138) Add /file/edit API method

This adds editing to the API so that we can edit properties and security
on the media objects.