Added scripting for components.
CRAFTERCMS-263: Fixed.