Disallow editing of non-text documents

Requesting documents now attempts to validate content types if the request specifies one. The client application now requests only content types of text/plain to put into the editor/syntax highlight. Attempting to put a non-text file into edit mode will result in a new document being loaded.