created utils, code cleanup of request handler and updates to basic-server.js