Add method to return the name of the currently active window.
When using selenium2 driver and switching back to main window from an iframe cause an error to be thrown when on Linux opertating systems.
Storing the name and passing back the name to method switchToWindow fix the issue