Register tempfile for deletion on JVM exit

From the JavaDocs for File.createTempFile():

> This method provides only part of a temporary-file facility. To
> arrange for a file created by this method to be deleted automatically,
> use the deleteOnExit() method.
Merge pull request #25 from guns/delete-tempfiles-on-exit

Register tempfile for deletion on JVM exit