cosmetics.
reduced wire thickness in screen-space wireframe diagnostic surface shader.
refactoring.
fixed issues reported by Coverity.

the only meaningful ones are uninitialized ray depth and a memory leak.
Merge branch 'master' of github.com:appleseedhq/appleseed