Add two new events 'APP.before' and 'APP.after'