Download hooked up to REST API

* zipping up staging area before starting download
* minor fixes like NPE checks
* added DownloadResource to hook into /data/download/item/{id}