Added npe check
Fixed merge conflicts
Merge branch 'npe' of https://github.com/dave-finnegan/brooklyn into misc
tidy of MongoDB client NPE check (as per discussion in #1327), and clearing isRunning on stop
improve logging for longevity tests
refactor EntityCleanupLongevityTest so that (1) it checks explicitly that things have been cleaned up, (2) we have a unit test as well as a long-running test, and (3) the long-running test makes memory assertions; currently explicitly excuses certain leaks (which we want to patch soon)
reply to code review comments, method now called `isMostlyEmpty`
Adds ServiceFailureDetector stabilisation delay
Fix CompoundTaskExecutionTest.testParallelTaskFailsWhenIntermediateTaskThrowsException

- failed in jenkins; fixed race in test
Fix DynamicSequentialTaskTest.testCancelled
Sort lists of effectors and policies returned by rest-server
Merge pull request #1348 from sjcorbett/resource-sort

Sort lists of effectors and policies returned by rest-server by name
rebind's loadMemento: guard against NPE
PR #1346: incorporate review comments

- ParallelTask.get() waits for all sub-tasks to complete before 
  returning, even if one fails
Added Integration test for testing redirect to absolute URL, fixed nginxcontroller SERVICE_UP issue
Fixed race condition that was preventing creation of brooklyn-ssh-tmp
jsgui: Undelegate events when closing policy and effector invoke modals

Should prevent > 1 execution.
Merge pull request #1346 from aledsage/fix/various-20140430

Fix/various 20140430
Add+fix ServiceReplacer.testStopFailureOfOldEntityDoesNotSetClusterOnFire
Fix AutoScalerPolicy built from PolicySpec

- moved work being done in constructor into init method,
  and call init in super constructor if _legacyConstruction