Implement EZP-19939: Public API Cache

# Work in progress! Do not merge!

This Pull request is mostly created to test out an additional automated code review:
http://jmsyst.com/automated-code-reviews/