Support MVC ActionResult Extensions

This is a merge of the changes requested by @programcsharp. I have made
some alterations to support generic file name extensions and content
type (MIME type). I also added the ability to convert type mappers to
type writers.