PCT-637: Query Analytics does not handle MySQL Restart

Tests pass: http://tools-ci.percona.com/job/percona-agent-branch/50/console
Just to be double sure - this means of course loosing queries after restarting MySQL for max 50s - we are ok with that?