Fix backend caching

- Now checks the settings file
- And the "newest" timestamp in the working dir
  (this assumes if the cgi changes we get a newer file)
Show "counts" from backend
Upgrade to d3 v3