Move templates configuration in cilantro.ui.core

This removes a circular dependency from aec4f61f