added functions to parse request headers and construct a response, updated echo server to provide more complete HTTP response