MySQL key-value backend

Initial implementation of a MySQL kvstore backend.

r? @rfk