Server file

Updated web/server.rb with needed endpoints, params logic and creating a hash for sending API requests.