Added a ProgressMonitor

Now I use that one to make sure that the file is saved before I
move on and do something else. It is saner than using a random
100 milisecond wait.
I add the time to the temporary resource name

I concatanate the milliseconds since the epoch to the file name.
This way I always get a new file and eclispe does not blow up
on me.

For issue #22
At the end I close the editor and delete the file

This way I prevent the workspace from filling up with junk. Also,
might alleviate the memory problem.

Again, for issue #22.