libs/core: add new convenience functions to luci.model.network