change mimewritable to take instance rather than type
Merge pull request #4375 from stevengj/mimewritable

RFC: change mimewritable to take instance rather than type