fix router issues

correctly handle / route. also make request.url a parsed url object
rather than just a string.