Convert EffectorConcatenateTest from groovy to java

- So can actually debug properly in IDE, after
  test failed once in jenkins. Suspect there's
  a race in the test code...
Simplify EffectorConcatenateTest

- Use latches rather than notifyAll/wait, to avoid bugs on
  spurious wake-ups
- Simplify test to make it a lot easier to understand
bumped xstrean version to have brooklyn compiled with java7
ssh tool cleanup

- Improve method names/signatures in SshTool; deprecate old ones
- Remove some code duplication
- Add test for ssh-key with passphrase
- SshjTool creates temp file for scp'ing, when doesn't know
  size of InputStream
Merge pull request #479 from andreaturli/jdk7

bumped xstrean version to have brooklyn compiled with java7
Merge pull request #474 from aledsage/fix/EffectorConcatenateTest

Fix/effector concatenate test
Use ConfigToAttributes, deprecating ConfigSensorAdapter
Merge pull request #482 from aledsage/tidy/ssh-tool

ssh tool cleanup
examples pom need snapshot repo in order for it to build against snapshot brooklyn
Fix AutoScalerPolicy

- We didn't have tearDown, so for "repeated" test with invocationCount=100
  we were presumably having 100 app+policies running, with lots
  of threads etc
- Also tidied up some of the assertion code to improve messages
Use Entities.destroyAll to tear down tests

- It terminates the management context, as well as stopping the app
Fix JavaEntityTest.testPolicySubscribesToEvents

- test was not creating a new entity, and relied on accidental test
  ordering for the entity field to have been set
Name our threads

- Pass in thread factory wherever we're creating an executor
- Adds TODO comments where we're creating an executor, and we should
  instead be (somehow) reusing the execution manager's pool
LoadBalancingPolicyTest: destroy policy

- so we kill the internal executor of the policy
Make Pool and Lease implement Closeable
fix ssh password issue
Merge remote-tracking branch 'aledsage/fix/IntegrationTests-20130124'

Fix conflicts in core/src/test/java/brooklyn/entity/basic/EffectorConcatenateTest
(converted to java in other pull request, adds destroyAll here)
Merge pull request #485 from grkvlt/closeable

Make Pool and Lease implement Closeable
Fix StartStopSshDriverTest.setUp
AutoScalerPolicyTest repeated test: gc in setup

- Try to fix jenkins failure where the "repeated" test, which runs a
  time-sensitive test 100 consecutive times, fails occasionally due to
  scale out/back taking a couple of seconds longer than expected. I
  suspect it fails due to a slow GC in the middle of the test. 
  Therefore GC as part of setup for integration tests.