Issue #133: Backports of security updates in Drupal 7.24, SA-CORE-2013-003

PR for https://github.com/backdrop/backdrop-issues/issues/133, including security fixes part of the Drupal 7.24 release.