MySQL statistic refactoring

This is a complete refactoring of the asynchronous MySQL statistics writer.
Same idea (async consumer/producer queue pattern), but completely rewritten.

It is still controlled by [MySQL] blakserv.cfg section and does nothing if disabled (or section missing).
Supports the same statistics and DB design as before which will be created if not existant.