Change from .jar releases to .deb

Other platforms can follow when somebody needs them.
Fix the typo
Use file cache path instead of /tmp
Rewrite the package call
Fix some code and adjust tests