def update(element, changeset)
      element.changeset = changeset.id
      response = put("/#{element.type.downcase}/#{element.id}", :body => element.to_xml)
      response.to_i # New Version number
    end
def update(element, changeset)
      element.changeset = changeset.id
      response = put("/#{element.type.downcase}/#{element.id}", :body => element.to_xml)
      response.to_i # New Version number
    end
Update an existing element using API write access.

 @param [Rosemary::Element] element the element to be created
 @param [Rosemary::Changeset] changeset the changeset to be used to wrap the write access.
 @return [Fixnum] the versiom of the updated element.