ASP.NET AJAX start/end notification - perfect for loading spinner etc.
Taken from http://stackoverflow.com/a/616845/1111597