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
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
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
Adds patch directory to archetype start.sh script
Merge pull request #1344 from ahgittin/mongo

Mongo NPE check
Merge pull request #1357 from Nakomis/archetype-patch-dir

Adds patch directory to archetype start.sh script
Updated following PR review comments
Merge pull request #1354 from Nakomis/fix/create-brooklyn-ssh-tmp

Fixed race condition that was preventing creation of brooklyn-ssh-tmp
Merge pull request #1355 from sjcorbett/jsgui-effector-invoke

jsgui: Undelegate events when closing policy and effector invoke modals