Add more phases to plugin lifecycle. re #10.

preInitBefore -> preInit -> preInitAfter -> initBefore -> init ->
initAfter -> postInitBefore -> postInit -> postInitAfter