Factor out IP in network library

Issue #206 wontfix
Kaya Kupferschmidt
created an issue

The library should focus more on interfaces. Some new might be needed like Transceiver. Implementations should be TcpTransceiver