Fixes #4395: Register group profile title buttons earlier
Fixes #4432: Do not escape ORDER BY/GROUP BY clauses in elgg_get_entities
fixes #3405 Memcache: fault in contructor can cause site to go into
English language
Fixes #4543: Cache entities fetched with get_entity and elgg_get_entities
small fixes
Respect site default language from javascript elgg_echo

The current implementation hardcoded 'en' as the site default language.
This patch uses the site's configure default language as the default
one.
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
Merge pull request #183 from hypeJunction/group_title_button

Fixes #4395: Register group profile title buttons earlier - registering menu items before rendering the layout
Merge pull request #189 from mrclay/t4432

Fix ticket 4432
Fixes #4606 made unlike code consistent and functional
Fixes #4608 optimizes messages_count_unread() - from Jeroen
Fixes #4382 catches lost connection to database - from Paweł
changed: loading of jQuery treeview library to prevent potential
unnecessary loading
Merge pull request #277 from jeabakker/#4604

Fixes #4604: Pages: potential useless loading of JS (jQuery treeview)
Merge pull request #192 from jeabakker/#3405

#3405 Memcache: fault in contructor can cause site to go into English language
Fixes #4165 livesearch now returns people based on last names
Fixes #4537, #4617 made input/friendspicker i18n compliant
Fixes #4619 downgraded type violations to warnings
Fixes #4168 returning default value from elgg_extract if non-array passed - not removing type hint since we downgraded it from an error to a warning