Make the expand pages code use the superfish - related to #878

As I wrote in the issue, this changes the markup of pagesection from div/span to ul/li in order to attach superfish to it.