Fix filename extractors. Add Accept extractor

Add request.accept method that reads the accept headers and sort mimetypes by priority (keeping the extension the first in the list)