removed dead code, split Nav from Repl
repl.eg -> main.eg
splitting code into several files
more splitting
better encapsulation for docs system
moved Nav to doc.eg