Add text file support

Adds support for non-page-based documents served from the View API.