initial plugin loading code for qml. not tested yet and needs still some work.