fix apps for new platform
unify AVR and STM targets
update contiki