Rename addPreRenderFunction to beforeRender and remove the plural

This removes `addPreRenderFunctions` and renames `addPreRenderFunction` to `beforeRender`.