Accept text/plain as application/json

As an optimization for CORS and to allow IE9 to work at all. See comment.
Take advantage of this text/plain optimization