Environment variable to use a custom tmp directory

This patch allows you to customize the tmp directory using an environment variable. This will solve #26. I think in the long run we should aim for a configuration file in place of environment variables, so that you can set everything on a per-project basis.

I added a new section to the README about configuration.