added a setting to deny instantiation of old master templates

- a general revision of the setting.php file with the corresponding call to $config->xxx has been done
- implemented the application of master template settings over own generated surveys