Ignore coverage directory.
Refactor to reuse code in the port_renderer.

Setting a default renderer for a whole media type was duplicating code
unnecessarily.