Added coupling logic, minor fixes and improvements to relevant files
Initial train wire implementation
Minor rerailer/spawnfunction impovements
Merge pull request #9 from HunterNL/master

Train wires