Convert a tree of files into a data structure that can be served with marksmith-server.