updated for plugin-system in Qt5.
polish code
imports test files.
fix a bug of plugin loading