Add a Sidebar class to represent the side bar

Start using it throughout the rest of the app instead of the various
instance variables