Introduce template file for nginx configuration file.

This change enbales user to specify the hostname and/or
domain name of jenkins.

This commit fixes #211.
Merge branch 'id/211' into dev