Elgg/Elgg — pull request #377 by mrclay (2012-09-04 02:50:24+00:00)
Title: Fixes #4290: adds preloading volatile metadata cache and unit tests

Summary:
* Adds `ElggVolatileMetadataCache`, `elgg_get_metadata_cache()` and unit tests
* Preloads all metadata for each `elgg_get_entities()` call with 1 query
* Fixes recurring unit test false positives due to test metadata not being cleaned up
* Fixes numerous phpdocs
* Removes a few unused vars