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
This conditional ensures that the NGINX API will only be deployed if enabled
Refactor template variables and configuration scripts