render text and markdown in filepreview
sanitize text files before embedding them
code style fixes, simplified css
Merge pull request #3291 from stuartf/markdown

render text and markdown in filepreview