curl: Add timeout. IPC: adjust timeout

Curl now has a relatively short 2 second timeout, while the IPC timeouts
have been bumped up to 5 seconds.
HTTP: Fix broken authorization for PUT/POST/etc

This might technically still break. Need to test with non-standard requests
with a request body.