Cleans up train latching/unlatching

Also adds a verb for turning off train engines.