refactored/cleaned up lib/files.php and switchted get() to SipStreamer

* cleaned up get() logic
* fixed get() to only send headers if requested (xsendfile could get in the
  way)
* switched zip file creation to ZipStreamer to create zip files directly in
  memory instead of creating (multiple) temporary files which caused heavy i/o