make flash available to subdomains
load stuff specific to Rails 3, Rails 3.1, Rails 4+
Merge pull request #22 from khoan/master

support cookie subdomain sharing