EZP-23462: Implement caching ObjectState handler

JIRA: https://jira.ez.no/browse/EZP-23462

TODO:
- [x] Unit tests
- [x] Possibly cache object state info by content?