General note about Stepper Motors.
When a stepper motor is moved a lot of energy is generated which can damage the driver boards on the electronics module. I suggest that the motor connections are left until the very last instruction. That is until after the rails are lubricated. When lub is applied it is very natural (and dangerous) to rapidly move the carriage which can damage the drivers.
I have built a few CNC type devices (including 3D printers and milling machine) and the only lub I've used is WD40!!