Generate a random string (provided by Michael Hartl in Rails Tutorial for generating random subdomains)
('a'..'z').to_a.shuffle[0..7].join