Define an app using a json metadata syntax, compositing using complex rules.