Set RAILS_ENV in railtie [fixes #144]

If users don't include the default testing engine, then RAILS_ENV can be wrong.
If RAILS_ENV is development then tests will fail, so make sure it is correct.
Update railtie and remove the generators check from Rails 3.0 while we are at it.