Enhancement: Enable 2nd Level caching (EHCache) for JPA2 entities

Enable query_cache and 2nd level caching for JPA2 entities and add JMX class for
exporting hibernate stats. Closes #38
Merge branch 'caching'