Fixed argument ordering for events, added some new events, fixed template errors for new versions of Jade.