Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` option

This deprecation applies to:
`button_to`
`button_tag`
`image_submit_tag`
`link_to`
`submit_tag`

As :confirm is an UI specific option is better to use the data attributes,
teaching users about unobtrusive JavaScript and how Rails works with it.
Merge pull request #6613 from carlosgaldino/3-2-data-confirm

Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` option
Add test to flash sweep after two redirects

This test is needed to avoid regressions in the way that flash works
now (swept in every request).
Revert "fix the Flash middleware loading the session on every request (very dangerous especially with Rack::Cache), it should only be loaded when the flash method is called"

This reverts commits e3069c64b2c5ddc7a5789b55b8efd4902d9e9729 and 2b2983d76fd11efc219273036a612f47cfaa5bfa.

Reason: This add a non-backward compatible change in the way that flash
works now (swept in every request).
Fix human attribute_name to handle deeply nested attributes

This is a back-port of b0e2fc84 to Rails 3.2.
See #5843 and #3859 also.
Merge pull request #6642 from kuroda/3-2-activemodel-translation-patch

Fix human attribute_name to handle deeply nested attributes
Revert "Perf: Don't load the association for #delete_all."

This reverts commit b98d1e21635d8776de8893cc09bd86c71f6c78f0.

Closes #6609

Conflicts:

	activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb
Make test cover previous reversion
Fix asset tags for files with more than one dot

After the fix done in 39f9f02a, there are cases that will not work
correctly. If you have file with "2 extensions", like foo.min.js and you
reference the file without extension, like:

    javascript_include_tag "foo.min"

it will fail because sprockets finds foo.min.js with foo.min argument.

This commit fixes this case and will get the right file even when
referrencing it without extension.

(closes #6598)
Fix railties test suite

Apparently asset_environment should not be invoked if it's not needed.
This fixes broken build by getting back to the code more similar to the
version changed here: 5b0a891
Removed protected as we already doing it above. 
We should not include engine.rake file into rake

if we are passing -T which is skip_test_unit

See issue #6673 for more details.

I saw that we are not creating dummy app even if 
we do skip_test_unit. 

Fixes #6673
Merge pull request #6677 from arunagw/3-2-stable

Removed protected as we already doing it above.
Merge pull request #6678 from arunagw/fix_issue_6673

Fix issue 6673
Don't add sqlite3 to gemspec with -O on rails plugin new

(closes #6672)
ActiveRecord#attributes optimization: minimize objects created
buffered logger is initialized with the log level passed trough the initializer
Duplicate tests removed.
Merge pull request #6689 from arunagw/duplicate_test_removed

Duplicate test removed
Merge pull request #6687 from tiegz/3-2-optimizations

ActiveRecord#attributes optimization: minimize objects created