Only encode as HTML for browser clients

This changes the middleware HTML renderer so that it only
lights up when the `:as-html` marker is present in the nREPL
request.

Use case: textual nREPL clients like vim-fireplace or lein repl
(when using the :connect option) shouldn't see HTML.