server: perform some error checking on the request uri
server: check that the request path points to a file or directory and call the appropriate handler function
server: add a basic implementation of the serveDirectory and serveFile functions