Implement a mysql backend for syncstore API.

This talks to MySQL directly rather than going through the kvstore
API, allow it to operate much more efficiently.

Also includes an update to latest release of mysql client library,
which we need to support pooling and transactions.