Adds HDFS method to create a tmp dir.

For temp directories, as with other non-managed resources such as file streams, I find it usefull to have a `withTempDir` method which handles both creation and destruction of the directory. What do you think?