swPrepareSpinner / swCancelSpinner: Deal with the fact thet the server callbacks are async.
sw-ajax: call functions in their proper namespace.