Add an object to represent the sidebar

We're using a lot of the same instance variables throughout various controllers to populate the sidebar, so I thought it would be nice to pull them out into their own object.

After seeing this, I think there's some unification we can do between the mobile views and the normal views, but I'll save that for another pull request. :smiley: