If one wants to access the raw statements from a certain Entity in Lua right now, they need to load the whole entity ([[https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getEntity | `mw.wikibase.getEntity`]]). This poses two main problems: a) The whole entity needs to be serialized for Lua and b) we can't (without rather nasty hacks) tell which Statement(s) have been used.
Getting this new function in place will fix the aforementioned problems and also allow us to use more efficient storage mechanisms for loading individual Statements later on (so that the backend also doesn't need to load the full entity).
`mw.wikibase.getStatements( 'entity id', 'property id of statements to load' )`. It returns a table like a call to `mw.wikibase.getEntity( 'entity id' ):getBestStatements( 'property id of statements to load' )` would.
This new functionality should track statement usages (`C.P123`), but for now also other usages (`O`).