Refactoring server and handling '/users' URLs