Refactor: libp-i: Move CMD_ERR into libp-i.
This is currently defined in two places - crm_resource.h and
crm_ticket.c. I'm also looking at using it in other places in the
future, so it makes sense to condense it into just one definition in
libp-i.