PLA-1549

Wrap global state and end the misery (pun intended) of categorymembers
core api.
wgMiserMode changes the behavior of categorymembers mediawiki API, causing it to filter by namespace after making the query, leading to possibility of having fewer than $limit results