Complete DHCP functionality, fix logging a bit