Various fixes, but prepare for migration from nvd3 to Chart.js
Everything works now as expected.

Only `Files` tab remaining to do. Took jQuery and Pure CSS down so that I can
work offline. Completely using Chart.js now.