refactor(TE): Move TransformationEngine into a distinct module (refs #4568)

Also:
- Cleaned up regexes
Merge pull request #1 from eguaj/1.0-integration

refactor(TE): Move TransformationEngine into a distinct module (closes #4568)