Adds file upload to modeleditview.
Fixes preview rendering.
Moves all preloading inside File model and collection.