initial rough sketch of http request parsing and handling