Sdl2 touch api additions

Continues @michaeljbishop's work in pull request #1717 and adds code formatting changes and unit tests for SDL2 touch events. This pull request replaces/supercedes #1717, and contains the same content in that pull request and the additions.