Add --host CLI option

This adds a --host CLI option to specify the host name used for URL generation. This closes #43.