Send "Accept: application/json" header with API requests. refs #1604
Refuse to stream responses unless request Accept header has text/plain
or */*. Closes #1604