Fix for bug 823928: the examples are not reflecting the new layout changes

I've updated all the require statements that I found, and smoke-tested all the examples that were fairly easily executable. In doing that I found a few other bugs in the examples, and fixed those. I've also updated examples that used deprecated modules like window-utils to make them use the replacements.