total refactoring
[+] uart demo for tiny2313
[+] added uart-based debug for button demo

[*] changed some logic for more correct button timings (based on uart debug)
[+] playing with defines and range checks in them
renamed ButtonState to not override version in master on merge