request.uuid is not defined in Rails 3.1. Fall back to the request env variable when under Rails 3.1