Add request parsing code

Convert request data into a path and a set of parameters.