Plugin changes

Git says it can't automatically merge these changes? 
Many changes to pluginsAPI code in order to have it as a more or less standalone library.
-Separated the C++ and C plugin api's
-updated CMake to build and install plugin code

quite much more todo regarding plugins