Various frontend improvements

Optimise shadow image (25.7% filesize reduction), fix chmod in README, HTML5 doctype (why was it "loose"?), make all JS external, concatenate and minified.