Fix various JSHint warnings and keep the style consistent.
Optimize images.

Use kraken.io, `PNGOut /r` and https://github.com/subzey/zopfli-png.