Change the functionality of (json_)api_call
Change the functionality of (json_)api_call

Warning: this diff is difficult to read because some, but not all,
indentation changes affected behavior.

Always set the content-type to application/json, including cases where
the request function returns an HttpResponse.

Drop underlying api_call function entirely and promote json_api_call
to contain its body.

clever-crow-consulting/otm-core,recklessromeo/otm-core,recklessromeo/otm-core,recklessromeo/otm-core,RickMohr/otm-core,maurizi/otm-core,RickMohr/otm-core,recklessromeo/otm-core,maurizi/otm-core,RickMohr/otm-core,clever-crow-consulting/otm-core,RickMohr/otm-core,maurizi/otm-core,maurizi/otm-core,clever-crow-consulting/otm-core,clever-crow-consulting/otm-core