moved addRequiredResources() there + phpdoc
added customElementRegistryFactory + refactored ci registry and added ic registry