Try to fix timing issue in RepeaterTest by increasing time limit and changing acceptable range:
Convert PolicyRegistrationTest from groovy to java
Adds policy added/removed sensors
tidy display of config
utilities for accessing entities behind subnets
more fixes for bug where app parented by app reports itself as the master
(specifically where added using new style syntax, after creation)
RubyRepLiveTest: disable inherited integration tests
more logging
completion of CIDR computation, and bit manipulation library
Merge remote-tracking branch 'central/master' into fix/subnets-and-config

Conflicts:
	software/database/src/main/java/brooklyn/entity/database/mysql/MySqlSshDriver.groovy
            (minor blank string check, in local branch, already applied in master (moved to java))
addressed code review comments
Nginx: add proxy_set_header X-Forwarded-For and X-Real-IP
jboss/tomcat/nginx launch: wait for evidence of starting

- Then using SshCliTool (i.e. invoking `ssh` directly via system calls),
  the ssh session terminates before the background process has started.
  Therefore in launch command we wait for evidence (in log/console
  output) that process is running.
fix dontRequireTtyForSudo

- Use `sed -i.brooklyn.bak` instead of `sed -i`, so works on OS X
- Don't wrap in `bash -c`, so works with SshCliTool on CentOS/RHEL/OSX
ActiveMQ: allow custom config file

- Adds ActiveMQBroker.TEMPLATE_CONFIGURATION_URL
- Uses freemarker to parse config
Add JBoss6Server.BIND_ADDRESS config key
Delete JBoss6Server.PROPERTY_FILES config key

- Was deprecated with comment saying it will be deleted in 0.5
Merge pull request #569 from aledsage/fix/Tomcat

jboss/tomcat launch: wait for evidence of starting
Disable RubyRepIntegrationTest.test_localhost_postgres

- Because failing in jenkins, preventing us seeing what errors there 
  are in integration tests in subsequent modules.
- Needs to be re-enabled again later!
fixes to code review comments