Upgrade jquery to version 1.10.2 with jquery-migrate

We are using an ancient version of jquery, and before unbundling it,
it would be nice to upgrade it. Unfortunately, some other libraries,
such as bootstrap.js, use some of the deprecated functions. That's
why we will need to have jquery-migrate.js until we upgrade those too.

This patch upgrades jquery.js to version 1.10.2, adds jquery-migrate.js
version 1.2.1, and fixes some of the deprecated stuff in the horizon's
own libraries.

Change-Id: Ifcb0a7132f365816794c180b5979f57ab23b513b
Merge "Upgrade jquery to version 1.10.2 with jquery-migrate"