Added missing tmp dir
Massive refactoring. Using more CakeUtils, zipfile is now offered for downloading