This refactor should fix#17 and ensure that api.conf only gets created when rest_api_enable is set to true and that api.conf gets created in the correct location
* 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