Fix examples to follow new env tuple standard

This brings examples in line with the recent Middleware change.
Merge pull request #359 from unix1/master

Fix examples to follow new env tuple standard