Add file uploading

Added functionality to set a fileDetector function on the TestCase, for remote file uploads in WebDriver.

Modeled on the way the Ruby and Python bindings work. Not entirely sure if it ends up being PHPish.