web: Ability to customize SimpleAjaxTransportType

 - heart beat interval
 - javascript to run when server state is lost, individually
   for heart beat calls or other calls (which are likely in response
   to user interactions)
 - javascript to run before and after data ajax calls (common example is
   showing a "busy" animation)