Add `mysql2` gem support

This is #203 cleaned up and rebased on top of the latest master.