DO NOT MERGE patch for CRM-12840 by Jamie McClelland
Merge pull request #1465 from colemanw/CRM-12840

DO NOT MERGE patch for CRM-12840 by Jamie McClelland
CRM-13302
CRM-13302
CRM-13302
Merge pull request #1635 from deepak-srivastava/logs

CRM-13302 - improve detection of log columns that require rebuilding, and rebuilding mechanism
CRM-13302 - php 5.3 error fix
Merge pull request #1637 from deepak-srivastava/logs

CRM-13302 - php 5.3 error fix