Issue #183: Backports from Drupal 7.16, SA-CORE-2012-003.

PR for https://github.com/backdrop/backdrop-issues/issues/183, including security updates found in Drupal 7.16. Does not includes OpenID issues found in that same release, since we don't have that module in Backdrop.