Refactoring the capabilities, pulling in some code from WD project
Checking in work in progress for browser detection, will come back later
Don't run this test yet so it does not polute the working dir
Fix an issue where the port 9999 might be occupied thus the test fails. Now the test finds a garanteed emtpy port.