Fix strict_variables in backup::mysql
Add unit tests
Refactor mysql module

Goal is to avoid undefined variables (caught with strict_variables) and
better use class parameters to avoid useless multiplication of similar
classes.