Updated jquery address
Various enhancements
Removing a lot of junk
Explicitly reject the deferred when we need to redirect.