[imp] Changed conditional to make it easier to read.. Fixes #1839
[imp] Remove dependencies on document types. Fixes #488

Remove dependencies on document types in web.config