Added plugin enabling functionality for plugins to use (if they choose to).

+ Minor changes.