[WIP] Refactored plugins, refs #131

#### TODO:
- [ ] refactoring of modvars if plugin is active