[leaseinfo] write lease data to file

APIs for extracting lease information and writing to file pointer of
your choice.
Information extracted in dhcpcd-like format (ie. VAR=VAL).
Used by system updater infra on lease arrival.
Currently, variables mainly needed by netconfig are printed.