A generic swappable back-end for MIME type detection