uglify + gzip in build.sh, improve production mode, fix html entities in titles, fix wrong urls in prod mode