[touch-demo] Moved touch code to a new file.