Update cook-book.md

- add solution for outputing JSON by default.
- add solution for missing view scripts zf2 errors.