Fix #6238 Return blank arrays 

I committed this simple change to return the empty array rather than false for empty settings result for ElggPlugin::getAllSettings and getAllUsersSettings. Put this into 1.8 branch.
Fixes #6258: Pagination uses HTTP referrer as default base_url for Ajax requests
Merge pull request #6263 from mrclay/6258

Fixes #6258: Pagination uses HTTP referrer as default base_url for Ajax requests
Handle case if get_user_notification_settings() returns false
Merge pull request #6250 from edfactor/patch-1

Makes sure plugin settings functions return arrays
Fixes #6012: Gets correct client IP behind proxy (1.8)
Checks X-Real-Ip header as well when determining client IP
Merge remote-tracking branch 'origin/1.8'
Merge remote branch 'upstream/master' into group-access-editable