add a route handler

the route handler delegates the function of routeing the path to the
router. This is a separate layer in case aditional functionality needs
to be added.
Merge pull request #6 from zachmokahn/route_handler

add a route handler