Update of uart and cpu API and avr implementation.
init and end are now part of dev struct.

+ init called on dev_open.
+ end called on dev_close.