first set of rpl demo related fixes

set of small fixes which make the example application rpl_udp more stable and robust