MDL-30592 moodlelib: new helper component_callback
MDL-30592 moodlelib: new helper component_callback

I chose to be slighly inconsistent with plugin_callback in order to make a nicer API.

dilawar/moodle