Load all mimetypes in one go

Supersedes https://github.com/owncloud/core/pull/5078
@guruz  @DeepDiver1975 @karlitschek @bantu