Added flag to enable JSONP.

- Turned JSONP off by default and added a flag on
  ConnectionConfiguration to enable it.
- Added tests that verify both modes (on/off).

#2328