server modules in lib directory
restructuring server code into modules
moving some client files to their corresponding server modules
cleaning up client code