Increasing code quality.

Javascript was normalized, and rules for validating it were added. HTML
now passes (almost) all Tidy tests. CSS was even further cleaned up, and
is now validated with CSSLint. Changed some class names in the backend
for the eye-candy code.