[WIP] Implement caching ObjectState handler

JIRA: https://jira.ez.no/browse/EZP-23462

TODO:
- [ ] Unit tests
- [ ] Possibly cache object state info by content?
note: missing `return $stateGroups;`