pacemaker: Rename parse_ticket_state to read_ticket_state.
This function is now slightly different. Instead of going all the way
from reading a file pointer to loading attributes, it now stops before
loading the attributes and returns an XML document. The attribute
loading happens afterwards in the caller.