cleanup: global functions (esc/unesc/crc) of decode shifted to bus.
decode/encode splitted into two files.