[HttpFoundation] Fixed JsonResponse for IE 7-10

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #10693
| License       | MIT

Related to issue #10693: Internet Explorer doesn't support 'application/json' (it offers to download a document instead of printing the object).
This seems to affect the [versions 7 to 10](http://stackoverflow.com/questions/13943439/json-response-download-in-ie710). 

To fix this, IE has to be detected (beware of Opera which uses a similar user-agent) and a 'text/json' content type should be set.

To do:

* [x] Write a test
* [x] Actually test it on IE
Will do. I was also thinking about dropping the `[1-9]` part: this issue affect IE from 7 to 10, and IE 11 isn't released yet...
In the end, I'd best use `stripos`...