Refactor template variables and configuration scripts
* Add option to enable REST API * Add option to enable live dashboard * Add option to install WAF module * Load modules in nginx.conf * Improve version check for RedHat distros