Allow an object that implements the FileInterface to be passed to the Resource model.
Merge pull request #2 from BradEstey/master

Pass object that implements FileInterface to Resource model.