adapt to the latest aloha api

retrieve dpid from a switch and use it as an indentifier
instead of pid or socket so that transient OF channel breakage
does not affect aloha tcp connections.