Add cache helpers.
Issue #281: Allow cache per role.
Issue #302: Allow rendering via a view mode.
Add documentation for rendering view modes.
Merge branch '7.x-1.x' into php-apache-server