Datepicker: Adding boilerplate for events in new API.
Datepicker: Updating tests for the destroy() method.