Upgrade jquery

jquery Migration library should allow plugins and existing code which is
not compatible with the latest jquery to continue functioning.
Eventually it will be removed when code/libraries have been updated

jquery.curCSS usage is not handled by the migration library so handle
that manually
Upgrade jquery-ui

Sadly this must be done simultaneously with jquery because of some
internal API usage
Fix script menu expansion as jquery behaviour seems to have changed
Fixed some tooltips, more to be fixed