added the ability to call cloud code functions
updated content-length headers
fixed PUT headers