Fix {{currentUser}} and {{loggingIn}} by using weak dependencies.