Added support for spinnerLoops and spinnerDuration.

- The new optional parameters are available for the custom spinner only.

Reviewer: @aogilvie