Detect JRE location using registry; other fixes
Detect JRE location using registry; other fixes

A default install of the Oracle JRE will not set PATH or JAVA_HOME. This change scans the registry for JRE installs to determine the correct one to use, meaning there is no longer a requirement for the Brooklyn user to manually set either JAVA_HOME or PATH to be able to run brooklyn.

andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,neykov/incubator-brooklyn,neykov/incubator-brooklyn,bmwshop/brooklyn,andreaturli/legacy-brooklyn,andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,andreaturli/legacy-brooklyn,bmwshop/brooklyn,aledsage/legacy-brooklyn,andreaturli/legacy-brooklyn,neykov/incubator-brooklyn,aledsage/legacy-brooklyn,neykov/incubator-brooklyn,andreaturli/legacy-brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,neykov/incubator-brooklyn,bmwshop/brooklyn,neykov/incubator-brooklyn,aledsage/legacy-brooklyn,bmwshop/brooklyn,andreaturli/legacy-brooklyn,bmwshop/brooklyn,aledsage/legacy-brooklyn