Added prototype for plugin managment

base plugin class and a manager for listing them
Tiny refactoring