Add a first class dynamic parameters scope
Fix bug in scopeSearch
Refactor BasePlugin for easier usage