Add script for overlaying WFK TB onto EAP 6
The $TORQUEBOX_HOME/apps directory is no longer used.

This is dead code leftover from the TorqueBox 1.x days. It also
requires $TORQUEBOX_HOME to be set to use torquebox run, which we'd
like to not be the case.
Don't add the polyglot cache-container multiple times for EAP
Relax checking of $TORQUEBOX_HOME a bit since it's not strictly required
Don't bring up a web context until its runtime is ready (TORQUE-820)

Now a web context with eager pooling (the default) won't come up until
its Ruby runtime is started. With lazy pooling the context will still
come up before the runtime is started. This makes it much easier for
load balancers to know when an application is ready to serve requests
since as soon as the web context is available the application is ready.

Part of this change involed removing the start asynchronously option
from runtime pools. It was only used by the web context and not
exposed to the user so removing this should have little effect. All it
means is the web runtime pool is brought up before the application is
considered deployed instead of afterwards.
Call a job's on_error method when an error occurs (TORQUE-420)

If an error occurs while executing a scheduled job and the job class
defines an on_error method then that on_error method will be called
and passed the Exception object.
Pass the expected init params for the on_error integ
Doc the singleton option for msgprocs
Allowing receive to optionally yield message to a block [TORQUE-911]

The return value of receive will be the value returned from the block,
if supplied, otherwise the message itself. If receive times out, it
returns nil without calling the block.

If a block is supplied, a transaction is started, so remote clients
can't pass a block.
Added some docs for [TORQUE-911]
Support Rails page caching (TORQUE-824)

The StaticResourceServlet can now also serve files
created by Rails page caching. Note that right now it expects the
Rails page_cache_directory to be the same as your configured TorqueBox
static resource path and the default page cache extension to be
".html". If users request it, we can add the ability to customize
these defaults. As-is, Rails page caching should work out of the box
for most applications.
Don't crash on unsupported JRUBY_OPTS options (TORQUE-909)

Some JRUBY_OPTS options aren't actually supported by JRuby's
RubyInstanceConfig so make sure we strip those out before passing the
options on to JRuby.
Fix Backgroundable usage with NewRelic (TORQUE-912)

Something.background.foo will no longer throw an error when NewRelic
is loaded in an application.

Fixing this led to discovery of another bug in applications with
NewRelic where it was possible for a method to get instrumented
multiple times leading to infinite loops and eventually stack level
too deep errors. This commit also fixes that issue.
Add integration test for Rails 3.1 streaming (TORQUE-433)

We've already supported Rails 3.1 streaming for a while but never had
an integration test to prove that it works. Now we do.
Convert symbols used as cache keys to strings (TORQUE-858)

All symbols used as keys in TorqueBox::Infinispan::Cache are
automatically converted to strings since a RubySymbol can't be
marshalled.
Apply the MSP to stomp_spec to try and fix intermittent failures
Add integration tests for clustered session replication
Only use :torque_box_store cache when TB gems are available (TORQUE-900)
Add an integ for loading message processors from gems (TORQUE-817)
Pass a Ruby Hash to service / msg processor initializers (TORQUE-852)

Configuration options will now come in as a Ruby Hash object instead
of a Java Map object for the initialize method in services and message
processors.