Copied SwitchEventProvider class from the old Tecla project and resolved all dependencies and errors.
Merge pull request #164 from ericwan78/issue-162

Copy switch event provider from old Tecla project. Fixes #162