Octree server scaling improvements

Various improvements to octree servers for scaling... 
* reduce amount of time that various objects are locked to improve concurrency
* handled a shutdown case that was taking a long time before the shared pointer was released and threads were cleaned up
* fixed some warnings
* added some stats to the server stats page