Added ondemand plugins support.

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.