Adding flash to the layout
Applying the default scope to all but the admin panel
Scoping the session to the tenant
Removing useless debug