Record file ops

* resource add / delete / refresh

* file open / close / save

Some problems still remain but this is the bulk of it. I've opened trello cards for the remaining issues.