Added plugin (un)initialization hooks, plug-in initialization on loading and updated the documentation accordingly