Implement spinner support for longer AJAX queries