Fixed the tests to run in headless mode

This pull request will fix the headless mode for the webdriver component. However, the common component seems to be erroring out when "-Djava.awt.headless=true" as well. The errant class seems to be BrowseActionTest.java