Adding categories and cart to model class

These were originally in the controller class, so I’m removing them
from there and adding them in to the model so they are all member
variables of the Model class instead.