Add customizable ordering to rules.

Uses jQuery-UI for drag-and-drop ordering.

Note that new rules will be dropped in at the beginning by default, and
that you have to click the save button to commit ordering changes.