Add optional basic auth: fix bug 1021307

Add support for jinja2 deploy templates
Port nginx.conf template to jinja2 with conditional basic auth
Add auth.conf template
So from what I've ready about nginx configuration, this `proxy_pass` doesn't inherit but `proxy_set_header` and `proxy_redirect` do, thus you have to include this again?