Automatically create components for xml controllers

New macro functions to achieve this, no need for "getComponentAs"
anymore