Initial implementation of relay server