request.uuid is not defined in Rails 3.1. Fall back to the request env variable when under Rails 3.1
Merge pull request #39 from bryanmikaelian/master

request.uuid is not defined in Rails 3.1.