Fixed WebDriver UAC to work with remote RC hosts and Grids

Resolves issue #159.