Make template render everything under d variable (this is silly and wrong and we should probably use some better template engine like handlebars)
Saving almost work
Use PATCH for update