update jQuery and jQueryMobile

Use the latest versions of jQuery and jQueryMobile. Use jQuery 1.9's improved Deferred support to handle 404 errors when look up a survey.

This branch comes from the offline branch, which is pull request #21 

/cc @hampelm