Add support for recursion on the /relations endpoints ([MSC3981](https://github.com/matrix-org/matrix-spec-proposals/pull/3981)).