Refactored so new CompiledTemplates can easily be created for new components
Instantiate scopes and childscopes