Refactor app layouts to use ejs templates.
Globally install gulp and imagemin.
Add 502 error page.
Tidy gulp tasks.
Update packages to latest versions.