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
--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 pull request #2760 from pradpnayak/CRM-14191

--CRM-14191, fixed the upgrade code and also added upgrade code to updat...
fix error message to make more sense
fix for CRM-14397

Signed-off-by: Jaap Jansma <info@edeveloper.nl>
Merge pull request #2779 from jaapjansma/CRM-14397

fix for CRM-14397
Merge pull request #2778 from eileenmcnaughton/message_fix

fix error message to make more sense
Merge pull request #2747 from colemanw/4.4

Backport CRM.api3 to 4.4