ISPN-4690 Upgrade to Scala 2.11.2

* Minor compilation adjutsments were required, including: switching
to new scala.concurrent classes added in 2.10, extend Serializable
trait instead of annotation, and use refactored Java conversion
methods.
* Scala XML module has been separated, so REST server needs a new
dependency, which it has also been added to Infinispan server as
a new module.
Generate the component metadata file in the generated-resources directory, so that it doesn't force a recompile of the module every time.