Enable appstats to track datastore usage

Enables looking at the datastore usage per-request to identify bottlenecks and ways we can improve performance.