Added Accept application/json

Some APIs output only cleartext if a correct accept-header is missing.
Merge pull request #1 from denisu/master

Add Accept Header (application/json)