Handle null and empty paths the same as /

This prevents a NPE when working with the java servlet API, which
returns a null path for requests to the context root (e.g. POST /wd/hub)
We don't use bamboo anymore
Implementing ability to use FirefoxDriver on a machine where localhost is not the first alias for 127.0.0.1. Fixes issue 3280