Refactor: fencing: add functions for getting/setting result via XML
These will come in handy as we update the various fencer messages to include a
full result rather than just a legacy return code. The functions are in a new
source file fenced_messages.c which can have other stuff moved to it later.