Added minification for js/css. Tweaked environment detection.