Refactoring and cleanup

- Reimplemented some of the modifier templates.
- Updated the wxGL example harness.
- Work-in-progress.