Chopped all classes to separate library

Plugin development much easier, all classes now in shared libary.