Add stats mecanism

- stats can be activated in config
- logs data in separate stats.log file
- data
  - timers for the main loop
  - count of request (by type)
  - count of several business processes (add graph, update comandetc)