add statistic package, incept statistic part into cache package, fix minor issues
add statistic recording to request handling, add statistic to server and partly to cache, split server initialization
fix race condition for server's loops, repair old tests for server and protocol mofules, add tests & docstrings for statistic module