Added mime type detection and some initial asset construction tests