Purchase method and Minor updates
Cart errors fixed

Working on upgrading cart.php to use $DB global. fixed minor errors
caused by change to SESSION variable ‘cart’ instead of ‘products’
AJAX update 0.1

added ajax functions to set SESSION variables
Updated .gitignore to ignore temporary backup files.