little code cleanups
added dynamic host name configuration for web app