Use system.getHostname() everywhere
Replace os.environ['HTTP_HOST'] with system.getHostname(), as a
result we do not crash when 'HTTP_HOST' is unset now.
Scripts to run Shrinksafe during build.
The function that runs shrinksafe over JS files has been put
to a separate shell file to be run standalone without building
if needed.