Separate dynamic plugin and dynamic lib

I moved the code from dynamic.cpp to sot-dynamic.cpp
Removed everything in dynamic.cpp apart from the plugin factory macro
Change CMakeLists.txt to compile sot-dynamic as a separate lib and dynamic as a plugin (as it was already)