Implemented threading and deprecated the old processPorts method.

Also added support for junk data in ports.csv (cacheCSV ignores lines
which aren't comma-delimited)