Add optional match_port/1 callback

The callback allows to match messages coming from active proxy protocols
given that the port object is otherwise opaque and doesn't match the
messages that will be received.