Fix for #2474. Makes some of the option form elements conditionally visible

I added comments and permissions settings optionally displayed depending whether modules are enabled or not.

Also, I updated the model so those two settings are added in `__construct()` method if the modules are enabled.

I wonder, how much these "are the modules enabled" checks are made overall in the core?