watch program files if in lower or upper case

Signed-off-by: Ian Norton <inorton@gmail.com>
fix stats records
introduce read/write lock for server for better concurrency