Added a GlobalState class that will be used to keep track of the cart,
the logged in user and other state. Also added methods to the window class
to refresh the screen and remove components.