Refactoring of picoapps udpclient and udpecho