Rename filename to asset in file models

We also define traits based on file type for our
file factories.