Clean up tri-box intersection
Clean up

Refactor, improve documentation, remove unused functions, improve
formatting.
Merge remote-tracking branch 'hanharr/master'

Conflicts:
	src/math/tribox.hpp
	src/trace/pathtracer.hpp
	src/trace/samplebuffer.hpp