Add custom plugin initialization function

- If a plugin has a function called pii_plugin_init, it will be called when
  the plugin is loaded.
- Fixed a copy-paste bug in plugin version function check.