Update fetching of files to be a map rather than a big object.

This will allow future additions to be visible immediately rather than having to update the model object for the new file.