Add some of a parser for OCN files

This isn't perfect: it doesn't get the port mapping correct and it
doesn't set the cost.  This will be fixed...