Get site path from config in requestRender() and sitePath()
Added pre- and post-render hooks, removed debugApi hook and cleaned up debug functions