fix dart template, web server regressions

Fix 2 regressions:

- the dart web app template was not getting its variables substituted properly
- the web server was not resolving `/packages/` references, and was serving up 401s

@ussuri