update to dappSamples to not use an initController key, template tag, and use Application instead of main.