Refactor markdown middleware to use showdown

The marked library escapes quotes by default, which is not apropriate in all cases. The showdown
library renders markdown output as expected, and has many extensibility options.