Merge pull request #99 from PaulBender/stable

Fixes #2250 Admin Log errors
Fixes #1847 memcache sockets
Fixes #2246 Logout link broken on "Access Denied" pages
Fixes #2249 sessions unnecessarily being deleted and created on every request
Fixes #2254 Adding attachment to an existing draft creates a new draft
Fixes #2254 Adding attachment to an existing draft creates a new draft
Fixes #2008 Google-Mobile useragent not detected
Fixes #1853 Allow login via email and/or username with settings in the ACP
Fixes #2158 Users can give reputation for any post.
Remove Memcached compression

This was causing issues and making all cache calls miss.
Fix incorrect HTML attribute
Use `$db->escape_string_like()` where possible

Although this doesn't pose any security risk, it can affect user experience when searching for underscores or percent symbols.
Misleading variable
Fixes #2151 Saving CSS changes in Simple Editor breaks @media queries
Fixes #1483 Large attachments, greater than PHP memory limit, fail
Fixes #2003 When replying to a subject that is at max character limit, you will get an error.
#2270 Minor Typo / Consistency Issue in showthread.php
Merge pull request #112 from JordanMussi/patch-4

#2270 Minor Typo / Consistency Issue in showthread.php
Revert "Merge pull request #79 from Shade-/patch-2"

This reverts commit 390aa3a4533700bba0de0b5389ce5ca95b5cedff, reversing
changes made to 96ec2a158c1e791f6eb77e1d926c4c3c34a73235.
Preparing for 1.6.11