asset guide, match application.rb snippets to the generated file [ci skip]

`if defined?(Bundler)` is no longer used in our current application.rb
Updates to make rails 4 happy with minitest 5:

+ Namespace changes, overhaul of runners.
+ Internal ivar name changes
- Removed a logger globally applied to tests that spew everywhere?!?
+ Override Minitest#__run to sort tests by name.
+ Reworked testing isolation to work with the new cleaner architecture.
- Removed a bunch of tests that just test minitest straight up. I think these changes were all merged to minitest 4 a long time ago.
- Minor report output differences.
cleanup, switch arguments in assert_equal calls
cleanup, assert on warning from postgres adapter
tweak dependencies
oops. I should have only required minitest, not minitets/autorun. muscle memory.
Document ActionMailer::Base#set_content_type
exit with non-zero to signal failure
Adding notes on PATCH to the upgrade guide.

Discusses compatibility between PATCH and PUT, as well as how to add
support for JSON PATCH to your application.

Fixes #10439.
emphasize that callbacks are called in destroy_all

Cleaned up rdoc a bit emphasizing that callbacks are called. Also
removed the stress on the fact that records are always removed.

If callbacks return false then records will not be deleted.
fix grammar
Added documentation for Rails::Generators::NamedBase.template
Added documentation for model migration generation
improved doc for ActiveRecord#find_by_sql method (Refs #10599) [ci skip]
Support array as root element in JSON
Use new hash syntax
ActionMailer::Collector should be nodoc'd
Document ActionMailer::LogSubscriber and ActionMailer::DeliveryMethods::ClassMethods
Document ActionMailer::MailHelper
nodoc ActionMailer module from lib/action_mailer/*.rb