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.

I'm conflicted about auto-save; I put it in because I kept forgetting to click the save button, but it does seem like overkill.