Devoncarew template

Some tweaks to the template code:

- Fix an exception caused by an empty `packages` directory in the setup.json file
- simplify the dart web app sample

@umop