So WordPress has some built-in support for AJAX queries, both from the admin panel and in the user-facing pages.
I don't fully understand how it all works yet as I am totally new to WordPress coding, but this seems to be what I want:
http://codex.wordpress.org/AJAX_in_Plugins
Thanks to moimikey for mentioning WP's ajax ability.