Finished the whole ajax thing. It seems to work fine, so I'm commiting to start tackling the bugs one by one.