Moves server logic to separate file
Initial tests setup