Don't add trashed/unpublished/draft pages to sitemap
take compression rate into consideration when creating avatar

as mentioned here http://www.concrete5.org/developers/bugs/5-6-1-2/avatar-helper-doesnt-take-in-account-al_thumbnail_jpeg_compressi/
Fix Orphaned Alias Page Paths on Delete

Fix orphaned alias page paths on delete.

- Remove alias from PagePaths table when original page is deleted
Fix Archive Override

Fix archive override

Change /concrete/libraries/archive.php to extend
`Concrete5_Library_Archive`
Merge branch 'fix-sitemapgeneration' of github.com:mlocati/concrete5 into fix_sitemap_results
Account for No Page Version

Account for no page version when checking if version is approved.
Fix Insert ID on getOrCreate

Fix insert id on `GroupPermissionAccessEntity::getOrCreate()`

- move `$db->Insert_ID()` call to below `Config::save()`
adds a default value to sortBy() as defined in the base ItemList class
Check DIR_LANGUAGES_CORE if $local file not found

Check DIR_LANGUAGES_CORE if $local file not found in DIR_LANGUAGES

- Refactor to flatten for new code and readability
Merge pull request #1142 from aghouseh/database-item-list-default-sortby

adds a default value to sortBy() as defined in the base ItemList class
Sanitize potentially unsafe data before it is used in header redirects
Corrected variable name
Security helper: helper methods are not used statically in C5
Updated all uses of Security helper to use Loader::helper rather than calling statically
replaced constant with method form image helper
Merge pull request #1061 from Remo/patch-46

take compression rate into consideration when creating avatar
Merge pull request #1138 from mkly/remove_orphan_alias_page_paths

Fix Orphaned Alias Page Paths on Delete
Merge pull request #1139 from mkly/fix_archive_file_override

Fix Archive Override
Merge pull request #1140 from mkly/fix_sitemap_results

Fix sitemap results
Merge pull request #1141 from mkly/fix_insert_paeg_peid

Fix Insert ID on getOrCreate