Text file preview

This PR adds support for previewing text files.

Depends on #661.
You are overwriting this SETUP.md (from Oct 12) with an old version! Did you merge develop into your branch?