full rewrite

* packet and control message pipeline is now in map-reduce style for
simplicity.
* add NamedPort and remove PcapPort. NamedPort can be attached without
opening a netdev.
* sync.RWMutex instead of sync.Mutex