Backported Cy3's OpenBrowser logic to fixed issue with opening web browser under OSGi.  Backport necessary so that this feature also works in Cy2, where OpenBrowser is buggy.