Admin UI, simplified and more error proof

The new edit UI gives a lot more feedback about problems, and makes it much more obvious what information is needed.

See commit comment for details.

This is still not enough to call #479 complete, since you still cannot run a query.