More renderer work. The C++ version is now function, and *much* faster than the Lua version. HMC inference has really weird behavior, though...