Add script running static code analysis

* cppcheck is required

Verification:
Run Scripts/cppcheck.bat. Report will be stored to
Scripts/cppcheck_result.txt

Change-Id: If6f301aa0362e853ce002b12377e3a6238addf07
Fix errors and warnings generated by cppcheck

Change-Id: Ic58d8957092376fbf88c16e121106232c83ad28c