Improved model loading using ActiveSupport::Dependencies

please include this patch for rake tasks