Add before/after step events

I ran across the need to execute a given action before and/or after a step in an intro. This could possibly be done by just using `onchange`, but it would be more difficult, and less straightforward.