Auto unhook and unregister a plugin when unloaded

Added feature to automatically unhook a plugin from Dungeon Maze and all
it's API sessions if it's hooked into Dungeon Maze when the plugin is
being unloaded.