Port the the result controller and the associated template

it's not fully functional, we need the path() template function