Revert "Merge pull request #1544 from eileenmcnaughton/master"

This reverts commit 008240e2a4a0a3957d58c891604656a679fbf0c6, reversing
changes made to f1951871b75764859fd45e23aff8933bf955de36.
Merge pull request #1547 from kurund/CRM-9493

Revert "Merge pull request #1544 from eileenmcnaughton/master"
Merge pull request #1545 from kurund/CRM-13066

CRM-13066, move data from civicrm_cache to civicrm_batch during upgrade
CRM-13066, move alter to php from template

----------------------------------------
* CRM-13066: 'Clean up Caches' deletes in progress batches
  http://issues.civicrm.org/jira/browse/CRM-13066