Add a custom StatisticsService implementation

Since `StatisticsService` was removed from Hibernate 4, we now need to
provide our own bean to pull `Statistics` from the current session
factory.

See here for more: https://hibernate.atlassian.net/browse/HHH-6190