Improved error handling,  implemented more methods from the REST API from Selenium2