New feature: Allow override of spell.translate through a config parameter named "translateFn". Also use spell.translate internally in the render subsystem to do translations. This patch also fixes a bug that spell.translate wasn't working as expected