remove pagemain.js

It does not seem to be usefull anymore.

The different main.js of /tree /notebook /etc do create an instance of
`page` themselves, error pages do have hardcoded styles that show header
and sites.
Merge pull request #6174 from Carreau/pagemain

remove pagemain.js