Merge pull request #26 from pavel-pimenov/master

Cleanup cppcheck
Learn fixes from Pavel Pimenov
Add missing headers
Fix connection check in OnTimerBase