[tm-idea] Use project configurable instead of facets in non-Java IDEs.
Restore TMTemplatesFactory.