adding file related attrs to asset file model

This adds some file attrs to model and uses those attrs to compute
the cache path.  This allows the cache path to be stored as an
instance var and accessed as a reader.

@jcredding ready for review.