Possibility of creating a folder in the wordpress root install and installing a file there, all via plugin?

Use WordPress Ajax API for any kind of ajax related stuff.

For more details : http://codex.wordpress.org/AJAX_in_Plugins