added onPreInit and onPostInit events to plugins
updated README.md for new onPreInit and onPostInit events