CRM-14148 fix half hour timezones for d7

Fix on previous patch on d6 version
use group by to ensure we get single results for contacts
CRM-14384 - only display date picker if is_view neq 1

----------------------------------------
* CRM-14384: don't display date picker in survey data entry screen for view only field
  http://issues.civicrm.org/jira/browse/CRM-14384
Merge pull request #2701 from yashodha/HR-265

use group by to ensure we get single results for contacts
Merge pull request #2738 from jmcclelland/no-date-picker-on-view-only-fields

CRM-14384 - only display date picker if is_view neq 1
fix function to be static to avoid strict warnings
Merge pull request #2740 from eileenmcnaughton/strict_warnings

fix function to be static to avoid strict warnings
CRM-14093 - add CRM.api3 to rest.js
Alter singleton signature to match interface

(fix strict warning)
Merge pull request #2756 from eileenmcnaughton/patch-1

Alter singleton signature to match interface
Improves doc strings in class CRM_Utils_Api.
Improves doc strings in class CRM_Utils_Array.
--CRM-14191, fixed the upgrade code and also added upgrade code to update civicrm_option_value.value for batch_status and batch_mode
fix function signature to match interface & not give warning
fix trailing spaces (whitespace issue)
Merge pull request #2764 from eileenmcnaughton/static_warnings

Static warnings
Merge branch 'master' of github.com:civicrm/civicrm-core into docstring-cleanup
Cleans up class CRM_Utils_Constant doc string slightly.
Adds docstrings to the methods of class CRM_Utils_Crypt.
Merge pull request #2760 from pradpnayak/CRM-14191

--CRM-14191, fixed the upgrade code and also added upgrade code to updat...