added raycasting to lines with buffered geometry

PR for https://github.com/mrdoob/three.js/issues/3785

Example: http://potree.org/stuff/threejs/bg_line_support_in_raycaster/examples/raycast_lines.html

Please take a look if I handled the offsets correctly. I did whatever the THREE.Mesh codepath suggested to do.