avr-cec-target: documentation, comments, renaming, cleanup
avr-cec-target: clean up and restructuring of the CEC state machine