refactor using underscore method
clean up path handling
add alternate route for linking directly to file contents in the same
format as github