Fix rest-server ApplicationResourceIntegrationTest
Code tidy
Fix DynamicToyMySqlEntity (setting serviceUp)

- integration tests were failing because serviceUp was never being set.
- Now set it on start/stop.
- Would be even better to have a Feed that checks pid periodically.
Fix NodeJsWebAppFixtureIntegrationTest

- Don’t extend the java-specific AbstractWebAppFixtureIntegrationTest.
Fix JBoss 6 tests: use hello-world-no-mapping

- The default hello-world.war caused contained url-pattern in web.xml,
  which is not supported in JBoss6.
- Switched tests to use the simpler hello-world-no-mapping.war
tidy qa’s hello-world.war

- copied core/src/test/resources/hello-world-no-mapping.war
- added hello-world.txt to explain it.
Change BrooklynLauncherRebindToCloudObjectStoreTest to live

- Was previously integration, but it writes to a live object store
  (depending on the configuration of named:brooklyn-jclouds-objstore-test-1)
Mark object-store’s testCleanDoesNotRebindToExistingApp as WIP

- fails because CLEAN does not delete the existing data from the
  object store, which is a good thing really (unless backup was
  extremely good!)
Time.sleep: only sleep if `millis > 0`
This closes #281
HA info in the docs on persistence
This closes #282
This closes #286
Fix JavaWebAppWithDslYamlRebindIntegrationTest

- support serialising/deserializing JavaBrooklynClassLoadingContext
  for “common case” of constructing with ManagementContext and no
  custom ClassLoader.
Fixing EntityConfigResource ClassCastException

- BrooklynJacksonSerializerTest failed with ClassCastException in
  EntityConfigResource.getPlain.
- Unclear why it was in that code at all; have added explicit test
  for “Accepts: text/plain”
Adds failing test for DependentConfiguration.builder()..runNow()
Fixes DependentConfiguration.builder()...runNow()
This closes #287
Fix NodeJsWebAppSimpleIntegrationTest

- Ensure check port availability early, so get nice error message
  for it.
  TODO other entities should probably follow same pattern?!
- copyInstallResources: don’t use env for create-install-dir,
  in case sub-class is setting lots of things or that would
  cause a config value of type attributeWhenReady to be resolved
- Code tidy: Networking.checkPortsValid
Fix MongoDBReplicaSetIntegrationTest

- need to retry addMember/removeMember if first attempt failed
  (e.g. because primary was not yet stable, or attributes of
  primary were temporarily out-of-sync)
- code tidy of MongoDBReplicaSetIntegrationTest