Reimplements the mysql setup script. This version is more maintainable, cross platform, and has more options.