Warn when we have uncommited changes
We want users to be aware there are uncommited changes before they change further objects.
So, add a warning in the navbar when there are uncommitted changes. To achieve this, we introduce a global state dictionary that is local to the application. Making it backed by a proper datastore isn't necessary right now but it should be easy enough if we ever decide to do so.