Max-flow, DFS/BFS traversal, adjacency lists, Firefox fix and pull from upstream

Sorry for the commit bomb. Closes #75.