Rename addPreRenderFunction to beforeRender and remove the plural
Merge pull request #972 from tschaub/before-render

Rename addPreRenderFunction to beforeRender and remove the plural.