Get rid of world-writable files and hardcoded paths

This is a rather big change. I replaced hardcoded filenames for tempfiles, that were written inside the cwd by using the tempfile module.

Hardcoded paths (most of them, I assume) were replaced by the brand new and shiny jasperpath module.

Also, some minor bugs were fixed and manipulation of sys.path has been removed.