Update apps and demos to use config objects.