Ebutton, EOutputDevice

Add handling evTurnOn, evTurnOff to EUotputDevice,
Add programmable events for EButton
A few small bugs solved