Added ResourceMonitor to provide JMX monitoring enpoints with an
accurate count of object in persistence. Brought back tests for
JdbcQueryableClientDetailsService.