[40network] Add variable parsing framework for network related variables

* Provides net_add_parse_vars function to install net_parse_vars hook when an interface comes online
* Provides net_parse_vars function to search and replace network related variables in a string
[40network] Provide a hostname fallback function, in case there is no executable of this name