Leave the instantiation of the session middleware to Main.
Add helpful messages to indicate when a card has been saved.
Remove extranious debugging.