model/controller - some backwards compatibility

The change to the model was specifically for an IE8 localStorage issue.
The controller and quickstart changes are so that session and cart id
will be saved to a cookie if localStorage is disabled or full.