netdb: Implement getnetent and getnetent_r
Created by: jroivas
Refactor gethostent functions to more general parsing for entries. Implement corresponiding getnetent functions.
This is alternative way to get same as on #3 so just merge either select that, or this one.