restructure to move common code across dhcpv4 and dhcpv6 to base class

Change-Id: I66c0785c5a45ef892e26dcb3bcea59035f2c6e00
Merge "restructure to move common code across dhcpv4 and dhcpv6 to base class"