web: Add POST support to REST client

Added $cockpit.rest(xxx).post(yyy) method to rest.js and tests
This sends the params as application/json.

If query string params are desired, these can be included on the
@path argument.

Fixes #259