Changed mime type detection in configs_controller.

Now we detect mime types like: "application/json; charset=utf-8" correct.