Fix mime types.
Fix static resource handling.