Gives Mediators more lifecycle hooks. Fixes #133
Moves lifecycle handler guarding into lifecycle. Removes ensureContextUninitialized.