deduplicate item creation code
pygments supports a lot non-text/* mimetypes, use pygments for these and also for unsupported text/* types (via text/plain)

use a special HIGHLIGHT_TYPES identifier in the config (== "all types we render with pygments")