Markdown

Here's some quick n dirty markdown. I had to modify one of the backend rendering utils, because automatic br insertion was messing with markdown. IMO we should move to an API + frontend framework model ASAP.