Start to the repo server

Added some source to main.lua for server
I've written it in the Github editor so I'm not sure if it's without errors