[WIP] Implement caching ObjectState handler

JIRA: https://jira.ez.no/browse/EZP-23462

TODO:
- [ ] Unit tests
- [x] Possibly cache object state info by content?
wondering if we should just store the mapping to object state id here, to avoid storing states several times in cache, this is the case most other places.