Folded in remote file upload functionality from https://github.com/sergeyksv/selenium-webdriver-gh/commit/8133faf3494c7c7c36f238bbcaf63fea07e0ad25.