Added ajax defaults that are used to override any default ajax setups to prevent our ajax communications from failing.

#1773
Added tests to verify the correctness of our ajax default overriding.