Added MIME types and filtering file lists

Thanks for the great project, it's exactly what we needed.

I added two small features: 
- The MIME type of files are automatically detected and stored along with the other meta data under the "mimeType" attribute.
- Before you could only filter the list of files (via GET requests) with the uploadDir. I removed the restriction so that you can filter via tags or other things.