Update whitespace & braces to WP Coding Standards

Just a bit of nit-picking related to WP coding standards. No
functionality has changed.
Fix some conflicts
Don't show transaction results if the viewer didn't make the transaction.
Minor whitespace fixes in wpsc_get_child_object_in_terms().
Fixing small errors in USPS settings page
The label on the USPS shipping options didn't match the input id
because of what seems like a typo. That's fixed. I also fixed the
shipping options not reflecting in the form properly, by casting the
returned value of array_search (the index it was found at) to a bool
to make it comparable internally in the checked() function
Whitespace / typo
Avoid warning caused by trying to assign the return value of a function by reference
Merge pull request #614 from leewillis77/strict_standards_fix_cat_functions

Strict standards fix cat functions
Port WPSC_Product class over from the new theme engine
Stats API for products and purchase logs
Get date range stats for individual products and collections
Fix PHP notice
added static to method decrlarations to avoid php warnings like this

error type: [2048] call_user_func_array() expects parameter 1 to be a valid callback, non-static method Sputnik::add_download_link() should not be called statically file: H:\web-site-dev\sparkle-gear.com\wp-includes\plugin.php line: 173
Merge pull request #624 from JeffPyeBrook/sputnick-static-callbacks

Static method declrations
Allow gateway images to be filtered
Merge pull request #626 from leewillis77/payment_images

Allow gateway images to be filtered
Use users table for all customers (visitors and registered)

Also fix cart serialization issue.
item count is sum of quantity field rather than count of rows
Merge branch @JeffPyeBrook PR #647.

Fixes #646, #647.
Find action as sibling of submit button (child of current form)