Bug #PSCFV-5637 - Order reference (string) if passed in from a 1.4 theme in id_order is cast into a integer which destroys the value.
Bug #PSCFV-5626 - Amended SQL query to correctly sum the totals for each day.
Revert "Bug #PSCFV-5626 - Amended SQL query to correctly sum the totals for each day."

This reverts commit b52dda80a041be057a95ca0313a1873477fda063.
When you set the "Fees by carrier, geographical zone, and ranges" (in the "Shipping" tab), the prices are tax excluded and displayed with 2 decimals, but the price is saved with 6 decimals in the database.

So when you define a shipping fee with 6 decimals it is saved without problem, but when you come back to edit the values, they are rounded (2 decimals) so you are forced to edit the values again, or else saving will replace the previous 6-decimals values with the displayed 2-decimals values.

Having 6 decimals displayed in the BO (not rounded, raw value from the database) is necessary because these values are tax excluded and are displayed tax included on the FO.
Update modules/blockmyaccountfooter/blockmyaccountfooter.tpl

SEO and accessibility improvement
- added rel="nofollow" link parameter
- added emty title parameter
Update modules/blockuserinfo/blockuserinfo.tpl

SEO and accessibility improvement
Update themes/default/css/cms.css

Added ordered list formating on CMS pages
Update themes/default/sitemap.tpl

SEO and accessibility improvement
- added link title and rel parameters
- improving dynamically displayed sitemap links (different list of link for logged/unlogged customer)
Update modules/blockuserinfo/blockuserinfo.tpl
Fix css errors

In css/admin.css, cellpadding and cellspacing are not valid css, so
replace them with the correct css equivalent.

In css/product.css, simply remove an extra 6 on color.
Fixup js/cart-summary.js

Cleanup of cart-summary.js

Error fixes:
1. Added two missing semicolons on line 34 and line 622
2. Fix var scrope around lines 229 and 805

General fixes:
1. Changed all == to === and != to !==
2. Added missing var to undefined variables in for loops
Fixup js/history.js

Change == to === and != to !==
Fixup js/order-address.js

Replace == with === and != with !==
Added var to for loop
Fixup js/order-opc.js

Error fixes:
1. Added missing var on line 89
2. Added missing semicolons on lines 98, 104, 110, 181, 766, 781

General fixes:
1. Replace == with === and != with !==
2. Added missing var to for loops
3. Moved a few var scopes to the correct location
Fixup js/product.js

Error fixes:
1. Added missing semicolons to lines 94, 103, and 680

General fixes:
1. Replace new Array() with []
2. Replace new Number with simply 0. If not, === checks will be broken
3. Replace == with === and != with !==
4. Fixed a couple variable scopes
5. Removed var from line 423 that was not needed because it was already
defined
6. Added vars to for loops
Fix up js/products-comparison.js

Replace == with ===
Fixup js/scenes.js

Replace == with ===
Fixup js/stores.js

1. Replace == with === and != with !==
2. Fixed variable scrope issue
3. Added missing () to constructors on lines 165 and 186
Fixup js/tools.js

1. Replace == with === and != with !==
2. Add missing semicolons to lines 238 and 241
Fixup js/tools/statesManagement.js

Replace == with === and != with !==