Added on-demand plugins support. #534

Added click button when ondemand option is used.
Changed enabled plugin option from boolean to enumaration (true,false) -> (enabled,onDemand,disabled).
Added / Changed global and local preferences to reflect new functionality.

Code was cleaned up.