by the `mergedirs' script. Few more IP address manipulation functions and some fixes.
Now contains only functions for logging, but it will change soon.