Move test.py to a more useful name, parameterize and put more function clutter in there.
Assumes:
 - There is a template directory (default: template)
 - There is an output directory (default: output)
 - There is a file inside the template directory named nginx.conf.tpl (mandatory)
 - There is a file inside the template directory named redirect.nginx.conf.tpl (mandatory - handles redirects e.g. example.com -> www.example.com)