Allow non blocking AJAX requests to specify max number of retries. This allows errors during feedback sending to fail gracefully rather than retry forever. Closes #454
If maxRetries passed to non blocking Ajax call, only execute the error function after hitting the maxRetry number.