Add a utility method for posting via curl
Fix json string and use util method in jenkins.rake