If action_buttons wasn't an object/array would fail.

In our wpec templates, and even the default one it should just be
pulling the action button directly, not multiple. Though I am sure there
are times there are more than one. (Maybe if you have a widget or
something?) Either way both ways will now work.
Merge pull request #970 from marcusds/master

#969 refer to 969
Improve wording of "Address to calculate shipping with" options.
Change js selectors not to hide table rows that have payment information
Combined js selectors to perform single action when hiding, rather than hide then show
Fix malformed class attribute on "Shipping Address" header row
Fix multiple change events firing on single action.  Seems that the .on/.off calls where out of balance, as each change occured additional .change events were being added.
Merge pull request #977 from JeffPyeBrook/do-not-hide-gateways-on-checkout

Fix for hiding of payment gateway rows on checkout table described in #597 and multiple AJAX requests on click of shipping same as billing
Merge pull request #972 from benhuson/calc_shipping_addr_display

Improve wording of "Address to calculate shipping with" options.
Use checked() instead of old legacy code.
Default to add_to_cart as the proper action_button value, otherwise, grab the first value.
Eliminate notices on sales log page when shipping is disabled and/or shipping fields are hidden or removed.
Properly globalize purchlogitem in wpsc_purchlogs_get_weight_text(), and grab global ID early instead of late.
For new installs, don't require phone by default.
Ensure PayPal Express does not send a discount line item if the discount is set to 0.00
Checkout Form Class Fix and Enhancement
Started using checkout form class functions in place of a couple of queries that were repeated in various places adounrd the code and noticed a couple of things.

* The data from the database that is stored in the class static can be retrieved with a parameter excluding heading fields but if a later call tries to retrive the values with heading fields the heading fields wouldn't get returned.  Changed the query to always retrieve the heading fields. Changed the retrival function to filter out heading fields if the caller asked for them to be filtered.

* Added a class function to return the count of fields

* Noticed that the version number was set to 3.9, since we are using the functions in 3.8.14 changed the version number in the header
Changed file back to upstream master to remove unneeded changes
The updates
Was about to do a tiny bit of work in the cart calss part of the cart.class.php and noticed that the file would benefit from a little cleanup before I made changes.

* This commit deosn't have any logic changes other than the deprecated functions noted here.
* the template functions were moved to a distinct file.
* The cart class is now the only thing in the cart.class.php file.
The google checkout functions have been deprecated. Note that one google checkout function is a part of the
cart class.  That function has been deprecated in place.
To preserve backwards compatibility changed ordr of includes to give same result as prior to 3.8.14
Added a wpsc doing it wrong message if a direct include of cart.class.php is detected
quotes around a constant name were missing
Merge pull request #992 from JeffPyeBrook/missing-quotes-in-page-php

Quotes around a constant name were missing