jQuery 1.9 compatibility changes

this branch makes archetypes.querywidget compatible with jQuery 1.7 and up, including 1.9. it breaks compatibility with jQuery 1.4.