Move summary & page parsing code to lib/parse/