PLA-1549

Wrap global state and end the misery (pun intended) of categorymembers
core api.
Glad to see this getting some use :+1:.