Add a node/relations handler

No tests yet. Uses the existing backend functions.