You are creating an intermediate connection point? The G540 has the DB9 connectors on its front. Mount the G540 to access the built in connections and eliminate 1 more area to cause an error. Not that it can't be done easily. It just isn't necessary.
Regarding cables. It is hard to beat the prices at the big box stores. Especially since you aren't buying a very large quantity. I personally would use an 18/4 shielded. Though 22/4 would be fine too (it is still a larger wire than the stepper wire). Btw on one of my iterations of a build I created an intermediate panel as you describe. I used 2 pins in the DB9 connector for my limit switches. Gecko only uses 6 of the 9 pins available. 2 for the current set resistor, the other 4 are for the poles of the stepper. Though it was a clean install and worked fine. I would keep the wiring separate now. Just for ease of wiring and protection from potential noise.
Cable length will be dependent upon the distance from the machine to the controller. I set mine up with 10' of cable on each stepper. Don't cut the cables til you are sure of the controller placement.