Renamed legalpages to staticpages.

The old name has no sense for the upcoming functionalities.

Fixes bug 2826.