(and to follow the naming conventons). keep old debug variable, but mark it as deprecated.
out of libmysql into separate dynamic plugins in the plugin/ directory. move dialog and auth_socket plugins out of the plugin directory with examples into dedicated directories in plugin/