Wrapped all of the server side files into objects now each with init and their own functions