Phoenix 180

First revision for review.  There are some open points here.  Still no test case added to consume the stats.  Will do the performance test once the system is available with me.
We wouldn't want to use a global read lock here - at most we want to have a lock with a name based on the table name.