plugin/ssa_extract.c: modifying ports/pkeys and links extraction

Moving port, pkey and link records extraction to
separate functions.

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>