use plugin_loaded()-event fo plugin initialization

plugin API and settings are not available before
Merge pull request #9 from manuelm/master

use plugin_loaded event for plugin initialization