Modified the whole debounce mechanism.

The debounce mechanism was clearly not functioning as intended
in previous versions.

The debounce sequence and the reaction to signals are now independent.
Debounce works on LO to HI and HI to LO transitions.
Merge branch 'debounce_refactoring'

Conflicts:
	main/main_CV.c
	main/rexus_micro_v1.X/funclist
	main/rexus_micro_v1.X/l.obj
PI-GUI: Fixed an issue with the serial parameters dialog.

The program was randomly crashing because the SerialPortDialog instance
had the main window for parent.