Adds session and flash support