Remove trailing whitespace from scripting.md
Change badgers to badger so that the example makes sense
Add a patterns doc for common approaches