by the `mergedirs' script. Few more IP address manipulation functions and some fixes.
Complete resource manages and IP address handling.