PCT-637: Query Analytics does not handle MySQL Restart

Done

However, I'm afraid that FileIntervalIter goroutine might access mysqlConn.Connect/Close/Set at the same time as the goroutine with check if mysql was restarted. @daniel-nichter What you think? Should I protect mysql.Connection with mutex?
I don't understand you point. I'm a huge fan of object oriented programming but this is how you can easily mock structs. If this is wrong approach - then ok, please provide me with some hints how can I properly mock structs?

Similar concept is used in http://godoc.org/code.google.com/p/gomock/gomock