Added a Session middleware to reset the IdentityMap