playframework/Play20 — pull request #480 by jroper (2012-10-11 04:45:55+00:00)
Title: Fixing race conditions in tests and removing static access to things

This commit does the following:

* Removes race conditions in Promise.system and Invoker.system that were causing Play to leak threads and our builds to hang
* Cleans up Invoker shutdown, so it can be just shutdown by calling reset()
* Removes unnecessary static access of Invoker.system() in WebSocketHandler, since the class that implements it already has non static access to an invoker
* Looks up defaultTimeout direct from Play configuration, rather than going indirectly to play configuration through loading an actor system
* Gives ReloadableApplication its own actor system, so that it doesn't reload in the actor system of the application that it's reloading