cleaned up the NetUtils class. To many variants of ip conversions, so extracted wrapper class and changed API