Fix copyright survey random query (Rails 2/3)

Rails 3 uses ActiveRecord::Relation, which doesn't have a public rand
method. This alternative works on both Rails 2 and 3.

Also, simplify routes file.