Add a "setup" event

Add an event called before plugin setup. This let us monitor plugin setup time and various other things.