A coalmining town in regional NSW is expected to lose more than 1000 jobs over the next decade. A railway yard could offer a lifeline.