clean session management code in Yesod demo