Changed the response library/response.php to handle content type headers separately and default back to the text/html if not set. This will allow for correct control of json and xml response data.

New API code in catalog not yet updated as it is WIP by Daniel.

Closes #1633
Merge branch 'master' of https://github.com/opencart/opencart