Move translate_markdown helper to global patch.

We should have the translate_markdown helper slotted in next to
Rails' own #t and #translate helpers, fixed.
Move flash rendering to a partial.