api: fix POST and PUT parameter passing
In general, these need to pass parameters via the body, not the URL. This matches the old code using `.form()` for the parameters of a `POST` or `PUT` query. Fixes: #41
In general, these need to pass parameters via the body, not the URL. This matches the old code using `.form()` for the parameters of a `POST` or `PUT` query. Fixes: #41