Added a very simple ajax function.

No posting forms, but it can handle simple data. Note: this is because plain JavaScript AJAX is a BITCH.

Please test before merge, it is very possible I screwed up royally.