Added cPlugin:GetLocalFolder() API function.

This supersedes the cPlugin:GetLocalDirectory() function.
Improved error message in cPlugin:AddWebTab() API.
Added a global "g_Plugin" object to all Lua plugins.

This allows plugins to have an empty Initialize function and implementing all their initialization at global level, thus modularising everything.