* WebHost: restore old silent ignore of mimetypes in json getting of /api/generate * Tests: add tests for /api/generate