[PATCH 16/18] conf: Move port parsing functions to own file, ports.c