ray-plane and ray-sphere intersection

Intersections and accompanying tests.

I've left off doing plane-plan and plane-plane-plane intersections. Someone else can have at it because I probably won't get to it for a long while.