[LIBS] netstack: Re-organize netstack APIs and its implementation in lwIP

Signed-off-by: Anup Patel <anup@brainfault.org>