Split out files into their own model.

Files are now attached to layers as necessary.