Refactor from global variable to RenderSettings

This uses bpy.types.RenderSettings to store data, eliminating the #XXX UGLY
marker previously required.
Merge pull request #1 from WChargin/refactor-global-var

Refactor from global variable to RenderSettings, pulled from WChargin... thanks!