Refactores network Interface a bit to use NetworkState struct instead of a map for passing runtime information around.

Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)