move reverse routing to model, fixes github-file-browser subdirectory file bug
merge