Refactor port registration on dp connect

This prepares the code for a later change over to OF1.3.

Signed-off-by: Joe Stringer <joe@wand.net.nz>