Remove various implicit globals in Angular app

This PR does not remove globals used by timelines model: removing these accidental globals would require addressing a number of circular dependencies, e.g. between `Timeline` and `Project` objects.