Added command-line overriding of render resolution and samples per pixel.

Also fixed a couple of bugs:
- Memory leak: scenes were not getting deleted after rendering.
- Shading: backfacing global illumination was not working properly.