Allow 'end' as a when event.

This allows turn.js users to react to for instance a corner being picked up and then dropped without the page turning.
Merge commit '0c31c60'