Added a more generic spring script.

The spring script provides basic spring behaviour between two objects.