Fix the invoke function so it returns the jqXHR from Backbone.sync.
The constructor also needed to be changed to so that the jqXHR returned by invoke() is returned again by the closures.