Retry POSTs when they don't succeed
Fix sending invalid JSON
Make HTTP stuff not hard-coded
Fix restd name