Program in C, that creates a multithreaded server tha allows uploading, downloading and deletion of images in a server. Images are compressed on the server. Threads are syncronized using thread locks. The haystack server creates an index during bootstrapping and also supports compaction if possible.