Convert resource_files_buf and deh_files_buf to GLib pointer arrays

Rename resource_files and deh_files to resource_file_names and
deh_file_names, respectively

Convert states to GLib hash tables + a queue for the buffers (to avoid
rampant allocation); to be honest, the queue should hold the entire
state, but I'll get to that later