minor re-arranging and docs update
add ThreadSafeResource resource+mutex wrapper template class
change resource+mutex pairs into refs to ThreadSafeResource instances