Break apart jquery.gravy.js into a bunch of component pieces.

Some of this stuff (especially in hacks) is probably obsolete, but I didn't
want to get too much into making substantive changes. The only actual changes
to the code are:
* Changing jQuery to $
* Fixing some random issues that jshint pointed out (mostly missing
  semicolons).

Testing done:
Smoke tested modal box, inline editor, and other js functionality.

Reviewed at https://reviews.reviewboard.org/r/4676/