Update templates, add wrap-multipart-params wrap-params, add /api/photo-upload endpoint