Better error handling and logging; visitor statistics in D3 now works with real data