First pass at MariaDB support.

test/tabletmanager.py passes!
It's enabled by setting MYSQL_FLAVOR=MariaDB before anything.