Removes quickElement from calendar.js

The function quickElement in calendar.js is a duplicate of the
quickElement function in core.js.
Moves cancelEventPropagation into core.js

The cancelEventPropagation function is a general utility function that
can be reused by other widgets.
Moves removeChildren to core.js

The function removeChildren is a general utility that other functions
might want to use.