added basic session middleware for cowboy