Remove usages of `pipe`, replaced with `then`.

Also needed up upgrade our test-harness instance of
Deferred to more closely match the implementation of
Deferred objects in 2.1.0. Using JQDeferred@2.1.0.