Add support for regenerating metadata when replacing files. Not doing so causes the wrong data being left in the database record, rendering it invalid. Resolves https://github.com/davidpersson/media/issues/67
Merge pull request #54 from ndm2/regenerate-metadata

Add support for regenerating metadata