cache ifaddr info retrieved by netifaces.
added license text and doc strings.