Introduced first variables to configure query statistics

Introduced mysql_query_statistics and mysql_query_statistics_interval
Query statistics are collected only if mysql_query_statistics is enabled
Statistics are dumped every mysql_query_statistics_interval seconds