Introduce template variables to dynamically change the domain name.

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