First pass at MariaDB support.

test/tabletmanager.py passes!
It's enabled by setting MYSQL_FLAVOR=MariaDB before anything.
Merge branch 'master' into replication