Implemented relay routing (wip)
Implemented relay routing test.