Test infrastructure changes.

ElasticSearch and Cassandra are now forked off into separate processes during REST tests, allow the test to run to completion without running out of memory, running out of threads or locking up inexplicably. There are currently 1 Core test, 16 Services tests and 22 REST tests that are not passing.