plugins: adding support for detection of installation type (install or upgrade) in server plugins.