Moved Relay class into a separate file

Signed-off-by: Balint Kovacs <blint@blint.hu>