prevent app from crashing when invoking plugin callback
Allow contentType and customHeaders to actually *be* optional.
Signal ajax request start and completion.