Include <sys/types.h>, <dirent.h>, and "database.h".
(M_description, M_command, M_variable): New variables.
(load_im_info_keys): New variables.
(load_im_info, check_command_keyseq, get_description_advance)
(parse_command_list, get_command_list, parse_variable_list)
(get_variable_list, input_method_hook): New functions.
(command_list, variable_list): New variables.
(minput__init): Put input_method_hook to Minput_method.
Initialize M_description, M_command, M_variable, Mdetail_text,
load_im_info_keys, command_list, variable_list.
(minput__fini): Unref command_list, variable_list, load_im_info_keys.
(Mdetail_text): New variable.
(minput_get_description, minput_get_commands)
(minput_assign_command_keys, minput_get_variables)
(minput_set_variable): New functions.