Fixes #4543: Cache entities fetched with get_entity and elgg_get_entities
small fixes
Added entity caching to elgg_get_entities with workaround for recursive delete problem (#4568)
Merge pull request #2 from mrclay/4543_18_3

More conservative fixes to 4543-entity-caching
Fixes #4786. Adds a CDATA structure in the script tag in the head.
Merge pull request #357 from sembrestels/cdata

Fixes #4786. Adds a CDATA structure in the script tag in the head.
Refactored for clarity
Merge branch 'steve-4543' into 1.8
Merge commit '693e6f296d98a63b5b2a14dea5c0829bb9c5ccf0' into tmp_merge