Support for enabling and configuring plugins

Additional variables and logic will let to enable and configure plugins.