Removed rails streaming due to bugs with threads. Added mime-type detection.