Add output buffering for Lua pages