Task #540 Refactoring of the dhcpclient api/picoapp