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.
Maybe I missed it, but I don't see any logic to create missing directories on the path to the config file, so it will bomb out if the directories don't exist.