docs(api/example): Add examples.md

- Move some example code into new examples.md from readme.md.
- Add example code for events and context injection wrappers.