Move leading slash removal loop to request handler

This is a step in unifying the request caching layer in lwan.