Some time/tick enhancements

The clock core plugin now initialises with a time. Tick functions now
get the date at which the tick occurred, not that at which they were
called; and modifications to their `this` don't affect the
library-internal copy.