Add support for creating workers

POST requests were passing parameters in the URL, which cloudcontrol does not support.
This patch checks if the request is a POST and then creates a curl command to add the parameters to the POST data instead.

There is no sanitisation of input or escaping, so probably fragile right now.