Removed the RayInter struct and simplified the Tracer API.

Also misc cleanups to better match C++11 style coding.