Refactor index statistics service class and helpers
merge nwilliams: Refactor index statistics service and classes for easier reuse.

https://code.launchpad.net/~nwilliams/akiban-server/refactor-index-statistics-helpers/+merge/164807