Add href, basename, mimetype, and ext attributes for media elements, and move external and internal media-tag generating into a single method.
Merge pull request #3 from samwilson/media-files

Add href, basename, mimetype, and ext attributes for media elements.