Adds nonce checks to all AJAX requests