Switch to Ajax.

Migrate data entry to be all-in on Ajax. The modal dialogs used
for forms already need Javascript to be seen, so why not use it
for everything?

This commit replaces the old post-redirect style rather than
extending it. Redundant functionality has been removed. Lots
of reorganization.