syncronise 4.5 api behaviour with 4.4 to provide more consistent extension support
Merge pull request #3528 from eileenmcnaughton/api-sync

syncronise 4.5 api behaviour with 4.4 to provide more consistent extensi...
CRM-12856 - CRM_Core_Lock - Autoformat
CRM-12856 - CRM_Core_Lock - Quieter logs

The log is very noisy (adding several log lines on most page requests). This
might be useful for debugging lock issues, but that's a developer task, so
we'll only do it if CIVICRM_LOCK_DEBUG is defined.
Merge pull request #3536 from totten/4.4-12856

CRM-12856 - Cleanup
distmaker - Auto-create DM_GENFILESDIR, DM_TARGETDIR, $DM_TMPDIR
distmaker - Extract function dm_install_core()

Conflicts:
	distmaker/dists/drupal6_php5.sh
	distmaker/dists/drupal_php5.sh
	distmaker/dists/drupal_sk_php5.sh
	distmaker/dists/joomla_php5.sh
	distmaker/dists/wordpress_php5.sh
distmaker - Extract function dm_install_packages()
distmaker - Extract functions dm_install_drupal() and dm_install_drupal_info()
distmaker - Extract function dm_generate_version()
distmaker - Extract function dm_install_joomla()
distmaker - DRY common.sh
distmaker - Extract function dm_install_l10n()
distmaker - Remove dead code. Shift comments.
distmaker - Reduce noise in dists/*.sh
distmaker - Extract function dm_install_wordpress()
distmaker - Reduce noise in dists/*.sh

Conflicts:
	distmaker/dists/l10n.sh
distmaker - Simplify l10n.sh
distmaker - Extract function dm_reset_dirs(). Reduce noise.
distmaker - Reduce noise in joomla_php5.sh