- Optimize Viewer render functor by templating more parameters.

- Use project environment variables now that they work