added thread base request handler, fixed missing mimetype on 304 responses