Added additional API calls for REACTION_DATA_OUTPUT.

I also significantly refactored the code in mdlparse_util
related to reaction data output.
Added helper functions to streamline reaction output API.