Copter: rework control switch debouncing

This changes control switch debouncing so that it uses a timer instead of a counter.