Wire up custom mediatype handlers to content negotiation. Fixes #5.