Implement out-of-tree build and packaging

Johan...
I'm converting all the plugins to the new unified packaging system. Should work without any problems on all the platforms.

Pavel