addrconf: initial lease writting/parsing helpers

The functions are not yet used anywhere (leases are still disarmed).