A ray can now compute its minimal distance to a segment

We can give optional targets to compute the points on the ray and the other on the segment (defining the minimal distance...)
Merge branch 'dev' of https://github.com/stephomi/three.js into dev