Move demo setup/cleanup code into DemoUtil.
This is part of the effort to clean up Utilities/Util.{cpp,h}.