add optional 'preview' flag to app settings

and give it its first member