further work on nginx installation script and templates

NOTE: THIS IS NOT IN A USABLE STATE, AT ALL. IT WILL NOT WORK, AT ALL.