Thanks for the suggestions! The fork() idea is very interesting --- I hadn't thought of that. Drop me a line at john at writelatex.com if you ever want to chat about tex stuff. :)