Made getCurlPost and getDOMXNodes in service. - Clean up DefaultController with the new methods.