Cleanup to support extracted marketplace gateway

 * Extract mysql-specific code into MysqlRunner
 * Allow optional root directory for assets
 * Pre-create the tmp_dir for runners