Optimize images.

Use kraken.io, `PNGOut /r` and https://github.com/subzey/zopfli-png.
Fix various JSHint warnings and keep the style consistent.