Change app_generator

- Removes unused code
- Quotes
- Renames methods, to make them shorter and communicate design
- Use of environment method over gsub environment files
- Redirect output to /dev/null for some commands