Modularized server

Placed the user-related code in a seperate file from the main server.