Added tests for examples (#2216)
This adds a new test to validate the structure and syntax of all examples and moves the existing example test into the mocha test suite.
Added checks for examples (#2128)
This adds a check to `premerge` to detect missing and lone examples.
All currently missing examples were added with some exceptions.