ajax request/response improvements

Here are the ajax enhancements. Please review and merge.

Thanks
-Paul