RED.nodes.createNode() is called from your node's constructor function as detailed here: JavaScript file : Node-RED - there isn't a lot else to say about it.
RED.nodes.getNode(id) is a runtime function that gets ahold of another node instance. The typical use is where you have a configuration node that is shared by other nodes. They would use getNode to get ahold of the config node and access its properties.
RED.nodes.eachNode(function callback(node) { }) is a runtime function that will call the provided callback for each active node in the current flow configuration. In general nodes should not need to use this.
RED.nodes.originaFlow() - I don't know what that is. I don't recognise it as anything in our source code.
But what is an "active node in the current flow configuration"? Are there "active" and "passive" nodes? And "flow configuration" is just the full set of nodes and their wires?
by the way, I made a typo: RED.nodes.originaFlow() must actually be RED.nodes.originalFlow(). It is used by node-red-contrib-components, but not set there which is why I assumed it would be part of Node-RED itself