Move network initialization to network package

Signed-off-by: Alexandr Morozov <lk4d4@docker.com>