Fix for contributions only CRM-12610
--fixed for CRM-12498, added condition to check valid contribution status change and throw error if invalid

----------------------------------------
* CRM-12498: API contribution.create/update DB Error: constraint violation
  http://issues.civicrm.org/jira/browse/CRM-12498
CRM-12664 --Fix for Grant Delete notification
Merge pull request #805 from Edzelopez/CRM-12664

CRM-12664 --Fix for Grant Delete notification
handle global variable $language not being set, restructure code a bit
CRM-12667

----------------------------------------
* CRM-12667: Tell a Friend causes error: "You do not have permission to access this page"
  http://issues.civicrm.org/jira/browse/CRM-12667
CRM-12667

----------------------------------------
* CRM-12667: Tell a Friend causes error: "You do not have permission to access this page"
  http://issues.civicrm.org/jira/browse/CRM-12667
Merge pull request #809 from dlobo/CRM-12667

CRM-12667
Merge pull request #808 from dlobo/NoticeFixes

handle global variable $language not being set, restructure code a bit
CRM-12510. There were no webtests for copying a contribution page or copying an event. Adding them.

----------------------------------------
* CRM-12510: Copy Contribution Page does not copy associated quick-config price set
  http://issues.civicrm.org/jira/browse/CRM-12510
fix more php5.3 notices
Merge pull request #795 from colemanw/is_test

Fix for contributions only CRM-12610
CRM-12646

----------------------------------------
* CRM-12646: Suppress the ability to edit custom data unless the user has edit rights on the contact.
  http://issues.civicrm.org/jira/browse/CRM-12646
Merge pull request #804 from pradpnayak/CRM-12498

--fixed for CRM-12498, added condition to check valid contribution statu...
Ran the complete api v3 Contribution unit test w/o errors after applying this patch.
code cleanup
CRM-12466, added option group and values for contact smart group view options
tempalate cleanup
CRM-12466, worked on form building
CRM-12466, fixed saving of radio options
CRM-12466 fixed default option for new installs