better pattern for the core templates, some code reorg, automatically find ancestor autoform context for all components except afFieldMessage and afFieldIsInvalid