Lua: Allow arbitrary item access

This also changes the tests slightly, as we now have hardcoded item ids.

This introduces the allowArbitraryDataAccess setting with which access
to abitrary items can be disabled (Defaults to allowing abitrary data
access).

Deploy: Set the allowArbitraryDataAccess setting to false
Bug: 67538
Change-Id: I78607bfd984cbc99192faaa5d8ca4ec331de3ab7
(cherry picked from commit 35ee608d66adf1b8df5ae77d71c333c5ff661575)
Merge "Lua: Allow arbitrary item access" into mw1.24-wmf14