Refactoring/encapsulate ipaddresses

This is a follow-up for https://github.com/cfengine/core/pull/1159 -- IPADDRESSES finally eliminated.