Replace events with function calls

Previously events were used to to trigger methods on
the timepicker. Binding to open.timepicker would result in
too many calls.

This change replaces events with function calls and adds
an onOpen event which is only triggered when the picker is
actually opened.

Similarly for the onSelect event.