improved plugin loading behavior and cleaned up after QGIS2 API-related changes