(CFACT-86 ) refactor solaris network resolver and move ioctl to its own struct (hold for reorganization)

This patch (The commit - refactor networking facts) moves ioctl calls to its own struct so that error handling and resource handling are simplified. It requires PR 118 and PR 121 before it can be merged.