Moving vtctl core code into a library.
fix time sql serialization.
Merge pull request #73 from PatrickDropbox/sql-time

fix time sql serialization.
Fix declaration of internal libmysql functions for MariaDB.
Make new DB data dir and config file for MariaDB.
Fix queryservice tests for MariaDB.