Many improvements: Added multiprocessing, content type detection etc.