[COOK-3426] Make suggested improvements
feedmagnet/deployment#1628

* Reorganized json structure to describe files, rather than a deeper
heirachy and use a type system to distinguish between files and
templates
* Rename custom_env to custom_files as more descriptive
* Update documentation