I re-factored WebJarAssets such that there are now two Play-independent services. These services should therefore be able to be used in other non-Play scenarios.

The WebJarLocator service is responsible for resolving the location of webjars given a provided class path.

The RequirejsProducer service produces the required require.js bootstrap code that is webjar aware. This service depends on Play's JSON capabilities. However Play's JSON capabilities will be factored out into a standalone library for 2.2: http://mandubian.com/2013/02/21/play-json-stand-alone/.

This service re-factoring also permitted spec2 tests to be written within ease. Tests for the services are also included.

TODO: A test is required to test out the WebJarAssets controller itself.