Continue work on event handler stack.
Run cppcheck to find issues, pass 1
Add .check files to 'make clean' and .gitignore
Remove unneeded files.
Add 'make check' for using cppcheck
Fix cppcheck in make