Fix for bad MIME Content-Type

Incorporate fix from @andysc to change the Content-Type to application/json on a deploy POST

Fixes #152