Add plugin support
Merge pull request #86 from pitr-ch/master

Add support for plugins