lib: added netdev_ref_resolve utility, improved related
Merge pull request #304 from mtomaschewski/master-netdev_ref