Update active-app and library-app to use pluggable .mk files
Add web-app template
Tweak web-app template

- Write sourcemap to the correct folder
- Minor code clean up
- Better .gitignore