[wip]
Rest server moved to a separate file