-- CRM-12787 applied patch and made some modification

----------------------------------------
* CRM-12787: Case Detail report: add filter & display column for Deleted
  http://issues.civicrm.org/jira/browse/CRM-12787
CRM-12849, CRM-12274 prevent log reports from fatal

----------------------------------------
* CRM-12849: "Change log" tab crashes with "Table log_civicrm_activity_target doesn't exist"
  http://issues.civicrm.org/jira/browse/CRM-12849
* CRM-12274: Merge activity tables into one unified table activity contact table
  http://issues.civicrm.org/jira/browse/CRM-12274
Merge pull request #1065 from deepak-srivastava/logs

CRM-12849, CRM-12274 prevent log reports from fatal
e-notice fix
Merge pull request #1066 from eileenmcnaughton/master

e notice fix
Merge pull request #1064 from ravishnair/CRM-12787

-- CRM-12787 applied patch and made some modifications